summaryrefslogtreecommitdiff
path: root/common/darkknight/jewelrycraft/block/BlockDisplayer.java
diff options
context:
space:
mode:
authorOnyxDarkKnight <sor1n.iliutza16@gmail.com>2013-12-27 19:11:36 +0200
committerOnyxDarkKnight <sor1n.iliutza16@gmail.com>2013-12-27 19:11:36 +0200
commit90c65b04bb9ddb0a5cbcfa86df4c18cc9ab3fa32 (patch)
treeeedb6ab2e2fc99244e6991612e78bd9679963647 /common/darkknight/jewelrycraft/block/BlockDisplayer.java
parent974d9333835f374e78595010f32203d4a25b5118 (diff)
Fixed smelter from crashing if it has another tile entity in front of it other than a molder
Diffstat (limited to 'common/darkknight/jewelrycraft/block/BlockDisplayer.java')
-rw-r--r--common/darkknight/jewelrycraft/block/BlockDisplayer.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/darkknight/jewelrycraft/block/BlockDisplayer.java b/common/darkknight/jewelrycraft/block/BlockDisplayer.java
index cf3a6ac..794e38c 100644
--- a/common/darkknight/jewelrycraft/block/BlockDisplayer.java
+++ b/common/darkknight/jewelrycraft/block/BlockDisplayer.java
@@ -101,12 +101,12 @@ public class BlockDisplayer extends BlockContainer
{
if(player.isSneaking())
{
- if(te.quantity > 64)
+ if(te.quantity > te.object.getMaxStackSize())
{
- te.object.stackSize = 63;
+ te.object.stackSize = te.object.getMaxStackSize() - 1;
player.inventory.addItemStackToInventory(te.object);
te.object.stackSize = 1;
- te.quantity -= 64;
+ te.quantity -= te.object.getMaxStackSize();
}
else
{