Updated powered items to match RC changes

This commit is contained in:
drcrazy 2018-07-19 18:30:47 +03:00
parent 712136914a
commit 523d0284b7
25 changed files with 188 additions and 274 deletions

View file

@ -47,12 +47,12 @@ public class ItemLithiumBattery extends ItemBattery {
return;
}
ItemStack stack = new ItemStack(ModItems.LITHIUM_BATTERY);
ItemStack charged = stack.copy();
ForgePowerItemManager capEnergy = (ForgePowerItemManager) charged.getCapability(CapabilityEnergy.ENERGY, null);
capEnergy.setEnergyStored(capEnergy.getMaxEnergyStored());
// ItemStack charged = stack.copy();
// ForgePowerItemManager capEnergy = (ForgePowerItemManager) charged.getCapability(CapabilityEnergy.ENERGY, null);
//capEnergy.setEnergyStored(capEnergy.getMaxEnergyStored());
itemList.add(stack);
itemList.add(charged);
//itemList.add(charged);
}
}