From 38ac6454b2c88432f1da9474fcceafb9d8ab5e3b Mon Sep 17 00:00:00 2001 From: OnyxDarkKnight Date: Tue, 17 Dec 2013 23:52:19 +0200 Subject: Sync stuff :) --- .../jewelrycraft/tileentity/TileEntityJewelrsCraftingTable.java | 7 ++++++- 1 file changed, 6 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 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) -- cgit v1.2.3