summaryrefslogtreecommitdiff
path: root/common/darkknight/jewelrycraft/tileentity/TileEntityJewelrsCraftingTable.java
diff options
context:
space:
mode:
authorOnyxDarkKnight <sor1n.iliutza16@gmail.com>2013-12-22 02:07:29 +0200
committerOnyxDarkKnight <sor1n.iliutza16@gmail.com>2013-12-22 02:07:29 +0200
commitb01cf1aa1d3480ad52ee7940f213596bfe6a2090 (patch)
tree75a1c11a4fb4b84297d9dd6b691575e003a37a82 /common/darkknight/jewelrycraft/tileentity/TileEntityJewelrsCraftingTable.java
parent6e9f023d2a5d272640149c85a36c7aa05845a984 (diff)
Could it be? Could I have fixed it?
Diffstat (limited to 'common/darkknight/jewelrycraft/tileentity/TileEntityJewelrsCraftingTable.java')
-rw-r--r--common/darkknight/jewelrycraft/tileentity/TileEntityJewelrsCraftingTable.java5
1 files changed, 4 insertions, 1 deletions
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);