diff options
| author | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2013-12-27 01:18:17 +0200 |
|---|---|---|
| committer | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2013-12-27 01:18:17 +0200 |
| commit | 1621733a8879026be1f1cfc7987f2c59d5795e24 (patch) | |
| tree | 23b6c0cb77a1ab6b7ac65783faa6d574ec873991 | |
| parent | 4d001997b81489da4bca149e6ba47e7ef08dc4b9 (diff) | |
Another fix....
| -rw-r--r-- | common/darkknight/jewelrycraft/block/BlockDisplayer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/darkknight/jewelrycraft/block/BlockDisplayer.java b/common/darkknight/jewelrycraft/block/BlockDisplayer.java index d83186a..95eb039 100644 --- a/common/darkknight/jewelrycraft/block/BlockDisplayer.java +++ b/common/darkknight/jewelrycraft/block/BlockDisplayer.java @@ -60,7 +60,7 @@ public class BlockDisplayer extends BlockContainer { TileEntityDisplayer te = (TileEntityDisplayer) world.getBlockTileEntity(i, j, k); ItemStack item = entityPlayer.inventory.getCurrentItem(); - if (te != null && item != null && item != new ItemStack(0, 0, 0) && world.isRemote) + if (te != null && item != null && item != new ItemStack(0, 0, 0) && !world.isRemote) { if(!te.hasObject) { @@ -71,7 +71,7 @@ public class BlockDisplayer extends BlockContainer if (!entityPlayer.capabilities.isCreativeMode) item.stackSize = 0; te.isDirty = true; } - else if(te.object.itemID == item.itemID && te.object.getItemDamage() == item.getItemDamage() && te.object.getTooltip(new FakePlayer(te.worldObj, "Player"), true).equals(item.getTooltip(new FakePlayer(te.worldObj, "Player"), true))) + else if(te.object.itemID == item.itemID && te.object.getItemDamage() == item.getItemDamage() && te.object.getTagCompound().equals(item.getTagCompound())) { te.quantity += item.stackSize; te.object.stackSize = 1; |
