From f9f752cfb266dca9eade8d564b4054c314b3fe78 Mon Sep 17 00:00:00 2001 From: Alessandro Proto Date: Sun, 13 Oct 2024 22:05:53 +0200 Subject: [PATCH] Do not submit active time to LP --- gradle.properties | 2 +- .../java/cc/reconnected/server/trackers/AfkTracker.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gradle.properties b/gradle.properties index c93476f..95e40f1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,7 +9,7 @@ yarn_mappings=1.20.1+build.10 loader_version=0.16.5 # Mod Properties -mod_version=1.9.2 +mod_version=1.9.3 maven_group=cc.reconnected archives_base_name=rcc-server diff --git a/src/main/java/cc/reconnected/server/trackers/AfkTracker.java b/src/main/java/cc/reconnected/server/trackers/AfkTracker.java index 494b87e..dbf2449 100644 --- a/src/main/java/cc/reconnected/server/trackers/AfkTracker.java +++ b/src/main/java/cc/reconnected/server/trackers/AfkTracker.java @@ -39,10 +39,10 @@ public class AfkTracker { playerStates.remove(handler.getPlayer().getUuid()); // sync to LP - var activeTime = String.valueOf(getActiveTime(handler.getPlayer())); - var playerData = PlayerData.getPlayer(handler.getPlayer()); + //var activeTime = String.valueOf(getActiveTime(handler.getPlayer())); + //var playerData = PlayerData.getPlayer(handler.getPlayer()); - playerData.set(PlayerData.KEYS.activeTime, activeTime).join(); + //playerData.set(PlayerData.KEYS.activeTime, activeTime).join(); }); AttackBlockCallback.EVENT.register((player, world, hand, pos, direction) -> {