From 6b93b32ce64db322a93d57c7bbf6a692b5cc3997 Mon Sep 17 00:00:00 2001 From: Micle Date: Wed, 8 Jun 2022 12:51:43 +0100 Subject: [PATCH] InputPacket: Instead of checking for any state other than ACTIVE, it will check for the JOINING or AFK state before updating the state. --- .../micle/loginprotection/network/client/InputPacket.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/dev/micle/loginprotection/network/client/InputPacket.java b/src/main/java/dev/micle/loginprotection/network/client/InputPacket.java index be48853..f98241c 100755 --- a/src/main/java/dev/micle/loginprotection/network/client/InputPacket.java +++ b/src/main/java/dev/micle/loginprotection/network/client/InputPacket.java @@ -34,8 +34,9 @@ public class InputPacket { return; } - // Update player state if they are not active - if (!protectedPlayer.getState().equals(ProtectedPlayer.State.ACTIVE)) { + // Update player state if they are joining or afk + if (protectedPlayer.getState().equals(ProtectedPlayer.State.JOINING) || + protectedPlayer.getState().equals(ProtectedPlayer.State.AFK)) { ProtectedPlayerManager.updateState(protectedPlayer.getPlayerUUID()); } });