Made energy items not lose their power when crafted with

Closes #289
This commit is contained in:
Ellpeck 2016-10-19 15:23:54 +02:00
parent 25c1ceffd5
commit 0771585123

View file

@ -62,11 +62,6 @@ public abstract class ItemEnergy extends ItemEnergyContainer{
return true; return true;
} }
@Override
public void onCreated(ItemStack stack, World world, EntityPlayer player){
this.setEnergy(stack, 0);
}
@Override @Override
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean bool){ public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean bool){
list.add(this.getEnergyStored(stack)+"/"+this.getMaxEnergyStored(stack)+" RF"); list.add(this.getEnergyStored(stack)+"/"+this.getMaxEnergyStored(stack)+" RF");