From 3a3c436e3f9e1a067010928ad4c664a7720a9d97 Mon Sep 17 00:00:00 2001 From: mezz Date: Sun, 2 Oct 2016 11:02:48 -0700 Subject: [PATCH] Fix unbound keybindings are activated by unknown keyboard keys (#3288) --- .../net/minecraft/client/settings/KeyBinding.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/minecraft/net/minecraft/client/settings/KeyBinding.java.patch b/patches/minecraft/net/minecraft/client/settings/KeyBinding.java.patch index d23849090..8a4965730 100644 --- a/patches/minecraft/net/minecraft/client/settings/KeyBinding.java.patch +++ b/patches/minecraft/net/minecraft/client/settings/KeyBinding.java.patch @@ -101,7 +101,7 @@ + */ + public boolean isActiveAndMatches(int keyCode) + { -+ return keyCode == this.func_151463_i() && getKeyConflictContext().isActive() && getKeyModifier().isActive(); ++ return keyCode != 0 && keyCode == this.func_151463_i() && getKeyConflictContext().isActive() && getKeyModifier().isActive(); + } + + public void setKeyConflictContext(net.minecraftforge.client.settings.IKeyConflictContext keyConflictContext)