aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/rosegoldaddons/features/MithrilNuker.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/rosegoldaddons/features/MithrilNuker.java')
-rw-r--r--src/main/java/rosegoldaddons/features/MithrilNuker.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main/java/rosegoldaddons/features/MithrilNuker.java b/src/main/java/rosegoldaddons/features/MithrilNuker.java
index 2e7a36a..9667eed 100644
--- a/src/main/java/rosegoldaddons/features/MithrilNuker.java
+++ b/src/main/java/rosegoldaddons/features/MithrilNuker.java
@@ -33,7 +33,10 @@ public class MithrilNuker {
}
if (event.phase == TickEvent.Phase.END) {
if(PlayerUtils.pickaxeAbilityReady && Main.mc.playerController != null) {
- Main.mc.playerController.sendUseItem(Main.mc.thePlayer, Main.mc.theWorld, Main.mc.thePlayer.inventory.getStackInSlot(Main.mc.thePlayer.inventory.currentItem));
+ 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) {
currentDamage = 0;
@@ -72,9 +75,9 @@ public class MithrilNuker {
if (blockPos != null) {
IBlockState blockState = Main.mc.theWorld.getBlockState(blockPos);
if(blockState.getBlock() == Blocks.stone) {
- RenderUtils.drawBlockBox(blockPos, Color.WHITE, true, event.partialTicks);
+ RenderUtils.drawBlockBox(blockPos, Color.WHITE, Main.configFile.lineWidth, event.partialTicks);
} else {
- RenderUtils.drawBlockBox(blockPos, Color.BLUE, true, event.partialTicks);
+ RenderUtils.drawBlockBox(blockPos, Color.BLUE, Main.configFile.lineWidth, event.partialTicks);
}
}
}