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:
@ -34,8 +34,9 @@ public class InputPacket {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update player state if they are not active
|
// Update player state if they are joining or afk
|
||||||
if (!protectedPlayer.getState().equals(ProtectedPlayer.State.ACTIVE)) {
|
if (protectedPlayer.getState().equals(ProtectedPlayer.State.JOINING) ||
|
||||||
|
protectedPlayer.getState().equals(ProtectedPlayer.State.AFK)) {
|
||||||
ProtectedPlayerManager.updateState(protectedPlayer.getPlayerUUID());
|
ProtectedPlayerManager.updateState(protectedPlayer.getPlayerUUID());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user