InputPacket: Instead of checking for any state other than ACTIVE, it will check for the JOINING or AFK state before updating the state.

This commit is contained in:
2022-06-08 12:51:43 +01:00
parent 4c4addc7ef
commit 6b93b32ce6

View File

@ -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());
}
});