diff options
author | RoseGoldIsntGay <yoavkau@gmail.com> | 2022-02-05 19:00:17 +0200 |
---|---|---|
committer | RoseGoldIsntGay <yoavkau@gmail.com> | 2022-02-05 19:00:17 +0200 |
commit | 5e484b169e736408ada925d9cdcea9ac6df7374a (patch) | |
tree | d43c997cf821910a53a918f39ea6b51096a0b485 /src/main/java/rosegoldaddons/features/MithrilMacro.java | |
parent | 20894963147ef84a7ad7d578191de69a856f6403 (diff) | |
download | RGA-5e484b169e736408ada925d9cdcea9ac6df7374a.tar.gz RGA-5e484b169e736408ada925d9cdcea9ac6df7374a.tar.bz2 RGA-5e484b169e736408ada925d9cdcea9ac6df7374a.zip |
2.7.3
lag fixed (real) and other stuff
Diffstat (limited to 'src/main/java/rosegoldaddons/features/MithrilMacro.java')
-rw-r--r-- | src/main/java/rosegoldaddons/features/MithrilMacro.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/java/rosegoldaddons/features/MithrilMacro.java b/src/main/java/rosegoldaddons/features/MithrilMacro.java index e2645c5..4ee8fa1 100644 --- a/src/main/java/rosegoldaddons/features/MithrilMacro.java +++ b/src/main/java/rosegoldaddons/features/MithrilMacro.java @@ -44,8 +44,10 @@ public class MithrilMacro { } if (PlayerUtils.pickaxeAbilityReady) { KeyBinding.setKeyBindState(lc.getKeyCode(), false); - Main.mc.playerController.sendUseItem(Main.mc.thePlayer, Main.mc.theWorld, Main.mc.thePlayer.inventory.getStackInSlot(Main.mc.thePlayer.inventory.currentItem)); - PlayerUtils.pickaxeAbilityReady = false; + if(Main.mc.thePlayer.inventory.getStackInSlot(Main.mc.thePlayer.inventory.currentItem) != null) { + Main.mc.playerController.sendUseItem(Main.mc.thePlayer, Main.mc.theWorld, Main.mc.thePlayer.inventory.getStackInSlot(Main.mc.thePlayer.inventory.currentItem)); + PlayerUtils.pickaxeAbilityReady = false; + } } if (currentDamage > 100) { KeyBinding.setKeyBindState(lc.getKeyCode(), false); @@ -80,7 +82,7 @@ public class MithrilMacro { RenderUtils.drawPixelBox(vec, Color.RED, 0.01, event.partialTicks); } if (blockPos != null) { - RenderUtils.drawBlockBox(blockPos, Color.CYAN, true, event.partialTicks); + RenderUtils.drawBlockBox(blockPos, Color.CYAN, Main.configFile.lineWidth, event.partialTicks); } } |