summaryrefslogtreecommitdiff
path: root/common/darkknight/jewelrycraft/block/BlockDisplayer.java
diff options
context:
space:
mode:
authorOnyxDarkKnight <sor1n.iliutza16@gmail.com>2013-12-26 23:27:53 +0200
committerOnyxDarkKnight <sor1n.iliutza16@gmail.com>2013-12-26 23:27:53 +0200
commit4c5ef8103468672b24bd27831da2cb04de001400 (patch)
tree8056014c5855dc914de555c2a48fbbe078b08e7f /common/darkknight/jewelrycraft/block/BlockDisplayer.java
parentcd56b1630738397247f9299ca524dfc58990b3c8 (diff)
Fix?
Diffstat (limited to 'common/darkknight/jewelrycraft/block/BlockDisplayer.java')
-rw-r--r--common/darkknight/jewelrycraft/block/BlockDisplayer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/darkknight/jewelrycraft/block/BlockDisplayer.java b/common/darkknight/jewelrycraft/block/BlockDisplayer.java
index 02de477..e0061ae 100644
--- a/common/darkknight/jewelrycraft/block/BlockDisplayer.java
+++ b/common/darkknight/jewelrycraft/block/BlockDisplayer.java
@@ -59,7 +59,7 @@ public class BlockDisplayer extends BlockContainer
{
TileEntityDisplayer te = (TileEntityDisplayer) world.getBlockTileEntity(i, j, k);
ItemStack item = entityPlayer.inventory.getCurrentItem();
- if (te != null && item != null && !world.isRemote)
+ if (te != null && item != null && item != new ItemStack(0, 0, 0) && !world.isRemote)
{
if(!te.hasObject)
{
@@ -87,7 +87,7 @@ public class BlockDisplayer extends BlockContainer
TileEntityDisplayer te = (TileEntityDisplayer) world.getBlockTileEntity(i, j, k);
if (te != null && !world.isRemote)
{
- if (te.hasObject && player.inventory.addItemStackToInventory(te.object))
+ if (te.hasObject && te.object != null && te.object != new ItemStack(0, 0, 0) && player.inventory.addItemStackToInventory(te.object))
{
if(player.isSneaking())
{