Fix unbound keybindings are activated by unknown keyboard keys (#3288)

This commit is contained in:
mezz 2016-10-02 11:02:48 -07:00 committed by LexManos
parent 4feb1dff50
commit 3a3c436e3f

View file

@ -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)