Fixed client not sending input packets when the key is not allowed.
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user