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 0e6334e06e
commit c03ef11d22

View File

@ -31,7 +31,7 @@ public class OnClientInputEventHandler {
private static void handle(int key) { private static void handle(int key) {
Minecraft minecraft = Minecraft.getInstance(); Minecraft minecraft = Minecraft.getInstance();
if (Proxy.Client.getPlayerState().equals(ProtectedPlayer.State.ACTIVE) || 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; return;
} }