diff options
| author | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2014-04-15 22:41:43 +0300 |
|---|---|---|
| committer | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2014-04-15 22:41:43 +0300 |
| commit | 4b8b13b34d7a8fd0ee7c7b13f11be9c2bf3b5d18 (patch) | |
| tree | b49bc483d576ec3abeb2e18523e4511ecce353d3 /eclipse/Jewelrycraft/common/darkknight/jewelrycraft/block/BlockDisplayer.java | |
| parent | 86398ed60db321f86e8d98f191107fdac2c93760 (diff) | |
More 1.7 stuff
Diffstat (limited to 'eclipse/Jewelrycraft/common/darkknight/jewelrycraft/block/BlockDisplayer.java')
| -rw-r--r-- | eclipse/Jewelrycraft/common/darkknight/jewelrycraft/block/BlockDisplayer.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/eclipse/Jewelrycraft/common/darkknight/jewelrycraft/block/BlockDisplayer.java b/eclipse/Jewelrycraft/common/darkknight/jewelrycraft/block/BlockDisplayer.java index be50e82..efdddff 100644 --- a/eclipse/Jewelrycraft/common/darkknight/jewelrycraft/block/BlockDisplayer.java +++ b/eclipse/Jewelrycraft/common/darkknight/jewelrycraft/block/BlockDisplayer.java @@ -71,6 +71,7 @@ public class BlockDisplayer extends BlockContainer te.hasObject = true; if (!entityPlayer.capabilities.isCreativeMode) item.stackSize = 0; te.isDirty = true; + te.markDirty(); } else if(te.object.getItem() == item.getItem() && te.object != null && te.object != new ItemStack(Item.getItemById(0), 0, 0) && te.object.getItemDamage() == item.getItemDamage()) { @@ -80,13 +81,15 @@ public class BlockDisplayer extends BlockContainer te.object.stackSize = 1; if (!entityPlayer.capabilities.isCreativeMode) item.stackSize = 0; te.isDirty = true; + te.markDirty(); } else if(!te.object.hasTagCompound() && !item.hasTagCompound()) { te.quantity += item.stackSize; te.object.stackSize = 1; if (!entityPlayer.capabilities.isCreativeMode) item.stackSize = 0; - te.isDirty = true; + te.isDirty = true; + te.markDirty(); } } } @@ -119,6 +122,7 @@ public class BlockDisplayer extends BlockContainer te.quantity = 0; } te.isDirty = true; + te.markDirty(); } else { @@ -137,6 +141,7 @@ public class BlockDisplayer extends BlockContainer te.quantity = 0; } te.isDirty = true; + te.markDirty(); } } } @@ -159,7 +164,7 @@ public class BlockDisplayer extends BlockContainer { te.object.stackSize = te.quantity; dropItem(te.getWorldObj(), (double)te.xCoord, (double)te.yCoord, (double)te.zCoord, te.object); - world.markBlockForUpdate(i, j, k); + world.removeTileEntity(i, j, k); } super.breakBlock(world, i, j, k, block, par6); |
