From b01cf1aa1d3480ad52ee7940f213596bfe6a2090 Mon Sep 17 00:00:00 2001 From: OnyxDarkKnight Date: Sun, 22 Dec 2013 02:07:29 +0200 Subject: Could it be? Could I have fixed it? --- .../jewelrycraft/tileentity/TileEntityJewelrsCraftingTable.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'common/darkknight/jewelrycraft/tileentity/TileEntityJewelrsCraftingTable.java') diff --git a/common/darkknight/jewelrycraft/tileentity/TileEntityJewelrsCraftingTable.java b/common/darkknight/jewelrycraft/tileentity/TileEntityJewelrsCraftingTable.java index 10fd05d..6eb2212 100644 --- a/common/darkknight/jewelrycraft/tileentity/TileEntityJewelrsCraftingTable.java +++ b/common/darkknight/jewelrycraft/tileentity/TileEntityJewelrsCraftingTable.java @@ -11,7 +11,7 @@ public class TileEntityJewelrsCraftingTable extends TileEntity { public boolean hasJewel, hasModifier, hasEndItem, isDirty; public ItemStack jewel, modifier, endItem; - public int timer; + public int timer, effect; public TileEntityJewelrsCraftingTable() { @@ -22,6 +22,7 @@ public class TileEntityJewelrsCraftingTable extends TileEntity this.hasModifier = false; this.hasEndItem = false; this.timer = 0; + this.effect = 0; this.isDirty = false; } @@ -33,6 +34,7 @@ public class TileEntityJewelrsCraftingTable extends TileEntity nbt.setBoolean("hasModifier", hasModifier); nbt.setBoolean("hasEndItem", hasEndItem); nbt.setInteger("timer", timer); + nbt.setInteger("effect", effect); NBTTagCompound tag = new NBTTagCompound(); NBTTagCompound tag1 = new NBTTagCompound(); NBTTagCompound tag2 = new NBTTagCompound(); @@ -52,6 +54,7 @@ public class TileEntityJewelrsCraftingTable extends TileEntity this.hasModifier = nbt.getBoolean("hasModifier"); this.hasEndItem = nbt.getBoolean("hasEndItem"); this.timer = nbt.getInteger("timer"); + this.effect = nbt.getInteger("effect"); this.jewel = new ItemStack(0, 0, 0); this.jewel.readFromNBT(nbt.getCompoundTag("jewel")); this.modifier = new ItemStack(0, 0, 0); -- cgit v1.2.3