summaryrefslogtreecommitdiff
path: root/common/darkknight/jewelrycraft/tileentity/TileEntityJewelrsCraftingTable.java
diff options
context:
space:
mode:
Diffstat (limited to 'common/darkknight/jewelrycraft/tileentity/TileEntityJewelrsCraftingTable.java')
-rw-r--r--common/darkknight/jewelrycraft/tileentity/TileEntityJewelrsCraftingTable.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/common/darkknight/jewelrycraft/tileentity/TileEntityJewelrsCraftingTable.java b/common/darkknight/jewelrycraft/tileentity/TileEntityJewelrsCraftingTable.java
index 633c4fd..74e681b 100644
--- a/common/darkknight/jewelrycraft/tileentity/TileEntityJewelrsCraftingTable.java
+++ b/common/darkknight/jewelrycraft/tileentity/TileEntityJewelrsCraftingTable.java
@@ -9,7 +9,7 @@ import net.minecraft.tileentity.TileEntity;
public class TileEntityJewelrsCraftingTable extends TileEntity
{
- public boolean hasJewel, hasModifier, hasEndItem;
+ public boolean hasJewel, hasModifier, hasEndItem, isDirty;
public ItemStack jewel, modifier, endItem;
public int timer;
@@ -22,6 +22,7 @@ public class TileEntityJewelrsCraftingTable extends TileEntity
this.hasModifier = false;
this.hasEndItem = false;
this.timer = 0;
+ this.isDirty = false;
}
@Override
@@ -63,6 +64,10 @@ public class TileEntityJewelrsCraftingTable extends TileEntity
public void updateEntity()
{
super.updateEntity();
+ if(isDirty){
+ worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
+ isDirty = true;
+ }
if (this.hasJewel && this.hasModifier && !this.hasEndItem)
{
if (timer > 0)