Do not submit active time to LP

This commit is contained in:
Alessandro Proto 2024-10-13 22:05:53 +02:00
parent d07fade5ab
commit f9f752cfb2
2 changed files with 4 additions and 4 deletions

View file

@ -9,7 +9,7 @@ yarn_mappings=1.20.1+build.10
loader_version=0.16.5 loader_version=0.16.5
# Mod Properties # Mod Properties
mod_version=1.9.2 mod_version=1.9.3
maven_group=cc.reconnected maven_group=cc.reconnected
archives_base_name=rcc-server archives_base_name=rcc-server

View file

@ -39,10 +39,10 @@ public class AfkTracker {
playerStates.remove(handler.getPlayer().getUuid()); playerStates.remove(handler.getPlayer().getUuid());
// sync to LP // sync to LP
var activeTime = String.valueOf(getActiveTime(handler.getPlayer())); //var activeTime = String.valueOf(getActiveTime(handler.getPlayer()));
var playerData = PlayerData.getPlayer(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) -> { AttackBlockCallback.EVENT.register((player, world, hand, pos, direction) -> {