Skip to content

Commit

Permalink
Reload keybind mouse button crash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOriginalGolem committed Jul 25, 2022
1 parent 4de52aa commit f5efb06
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ apply plugin: 'net.minecraftforge.gradle.forge'
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.


version = "1.6.8.2"
version = "1.6.8a-Gv2"
version = "1.6.8.3"
version = "1.6.8a-Gv3"
group = "com.hbm" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "hbm"

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/hbm/items/weapon/ItemGunBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ protected void updateClient(ItemStack stack, World world, EntityPlayer entity, i

if(mainConfig.reloadType != GunConfiguration.RELOAD_NONE || (altConfig != null && altConfig.reloadType != 0)) {

if(Keyboard.isKeyDown(HbmKeybinds.reloadKey.getKeyCode()) && (getMag(stack) < mainConfig.ammoCap || (mainConfig.allowsInfinity && EnchantmentHelper.getEnchantmentLevel(Enchantments.INFINITY, stack) > 0))) {
if((HbmKeybinds.reloadKey.isKeyDown() && (getMag(stack) < mainConfig.ammoCap || (mainConfig.allowsInfinity && EnchantmentHelper.getEnchantmentLevel(Enchantments.INFINITY, stack) > 0)))) {
PacketDispatcher.wrapper.sendToServer(new GunButtonPacket(true, (byte) 2, hand));
setIsReloading(stack, true);
resetReloadCycle(stack);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/hbm/lib/RefStrings.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
public class RefStrings {
public static final String MODID = "hbm";
public static final String NAME = "Hbm's Nuclear Tech Mod";
public static final String VERSION = "hbm-1.6.8Av2-1.12.2";
public static final String VERSION = "hbm-1.6.8Av3-1.12.2";
//HBM's Beta Naming Convention:
//V T (X)
//V -> next release version
Expand Down

0 comments on commit f5efb06

Please sign in to comment.