mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
There we go.
Now it's complete. I hope. Promise.
This commit is contained in:
parent
b3671b20c1
commit
ef909847cb
1 changed files with 6 additions and 5 deletions
|
@ -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){
|
||||
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 false;
|
||||
else return false;
|
||||
}
|
||||
else return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue