Energy storage enum-ed

This commit is contained in:
drcrazy 2018-09-25 03:09:56 +03:00
parent f2d8891bd5
commit 25f06384f4
14 changed files with 32 additions and 67 deletions

View file

@ -85,7 +85,7 @@ public class ItemBlockAdjustableSU extends ItemBlock {
public ItemStack getDropWithNBT(double energy) {
NBTTagCompound tileEntity = new NBTTagCompound();
ItemStack dropStack = new ItemStack(TRContent.ADJUSTABLE_SU, 1);
ItemStack dropStack = TRContent.Machine.ADJUSTABLE_SU.getStack();
writeToNBTWithoutCoords(tileEntity, energy);
dropStack.setTagCompound(new NBTTagCompound());
dropStack.getTagCompound().setTag("tileEntity", tileEntity);