Fix unbound keybindings are activated by unknown keyboard keys (#3288)
This commit is contained in:
parent
4feb1dff50
commit
3a3c436e3f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue