mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +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
|
@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
|
||||||
|
|
Loading…
Reference in a new issue