fixed none keybind

This commit is contained in:
Bob 2023-05-22 18:59:22 +02:00
parent 7ecc3fb1b7
commit e269653c69
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
mod_version=1.0.27
# Empty build number makes a release type
mod_build_number=4606
mod_build_number=4607
credits=HbMinecraft, rodolphito (explosion algorithms), grangerave (explosion algorithms),\
\ Hoboy (textures, models), Doctor17 (russian localization), Drillgon200 (effects, models, porting),\

View File

@ -3,7 +3,7 @@ package com.hbm.lib;
public class RefStrings {
public static final String MODID = "hbm";
public static final String NAME = "Hbm's Nuclear Tech Mod";
public static final String VERSION = "1.0.27 BETA (4606)";
public static final String VERSION = "1.0.27 BETA (4607)";
//HBM's Beta Naming Convention:
//V T (X)
//V -> next release version

View File

@ -996,7 +996,7 @@ public class ModEventHandlerClient {
for(Object o : KeyBinding.keybindArray) {
KeyBinding key = (KeyBinding) o;
if(key.getKeyCode() == keyCode && KeyBinding.hash.lookup(key.getKeyCode()) != key) {
if(keyCode != 0 && key.getKeyCode() == keyCode && KeyBinding.hash.lookup(key.getKeyCode()) != key) {
key.pressed = state;
if(state) {