Fixed client not sending input packets when the key is not allowed.

This commit is contained in:
2022-05-24 02:17:51 +01:00
parent 3ad8b7b212
commit 1a10094c9f

View File

@ -31,7 +31,7 @@ public class OnClientInputEventHandler {
private static void handle(int key) {
Minecraft minecraft = Minecraft.getInstance();
if (Proxy.Client.getPlayerState().equals(ProtectedPlayer.State.ACTIVE) ||
LoginProtection.getProxy().getServer() == null || minecraft.screen != null || !checkIfKeyAllowed(key)) {
LoginProtection.getProxy().getServer() == null || minecraft.screen != null || checkIfKeyAllowed(key)) {
return;
}