From ef909847cbbfc818aeee08dea8056e33d751c292 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 9 Jul 2015 15:16:18 +0200 Subject: [PATCH] There we go. Now it's complete. I hope. Promise. --- .../ellpeck/actuallyadditions/items/ItemDrill.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemDrill.java b/src/main/java/ellpeck/actuallyadditions/items/ItemDrill.java index 848c11b5c..5ae27ae85 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemDrill.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemDrill.java @@ -266,9 +266,9 @@ public class ItemDrill extends ItemEnergy implements INameableItem{ @Override public boolean onBlockStartBreak(ItemStack stack, int x, int y, int z, EntityPlayer player){ - if(!player.worldObj.isRemote){ - int use = this.getEnergyUsePerBlock(stack); - if(this.getEnergyStored(stack) >= use){ + int use = this.getEnergyUsePerBlock(stack); + if(this.getEnergyStored(stack) >= use){ + if(!player.worldObj.isRemote){ if(this.getHasUpgrade(stack, ItemDrillUpgrade.UpgradeType.SILK_TOUCH)) stack.addEnchantment(Enchantment.silkTouch, 1); else{ @@ -293,10 +293,11 @@ public class ItemDrill extends ItemEnergy implements INameableItem{ } } } + return true; } - return true; + else return false; } - return false; + else return true; } @Override