There we go.

Now it's complete.
I hope.
Promise.
This commit is contained in:
Ellpeck 2015-07-09 15:16:18 +02:00
parent b3671b20c1
commit ef909847cb

View file

@ -266,9 +266,9 @@ public class ItemDrill extends ItemEnergy implements INameableItem{
@Override @Override
public boolean onBlockStartBreak(ItemStack stack, int x, int y, int z, EntityPlayer player){ public boolean onBlockStartBreak(ItemStack stack, int x, int y, int z, EntityPlayer player){
if(!player.worldObj.isRemote){
int use = this.getEnergyUsePerBlock(stack); int use = this.getEnergyUsePerBlock(stack);
if(this.getEnergyStored(stack) >= use){ if(this.getEnergyStored(stack) >= use){
if(!player.worldObj.isRemote){
if(this.getHasUpgrade(stack, ItemDrillUpgrade.UpgradeType.SILK_TOUCH)) if(this.getHasUpgrade(stack, ItemDrillUpgrade.UpgradeType.SILK_TOUCH))
stack.addEnchantment(Enchantment.silkTouch, 1); stack.addEnchantment(Enchantment.silkTouch, 1);
else{ else{
@ -293,10 +293,11 @@ public class ItemDrill extends ItemEnergy implements INameableItem{
} }
} }
} }
}
return true; return true;
} }
return false; else return false;
}
else return true;
} }
@Override @Override