From 90c65b04bb9ddb0a5cbcfa86df4c18cc9ab3fa32 Mon Sep 17 00:00:00 2001 From: OnyxDarkKnight Date: Fri, 27 Dec 2013 19:11:36 +0200 Subject: Fixed smelter from crashing if it has another tile entity in front of it other than a molder --- common/darkknight/jewelrycraft/block/BlockDisplayer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common/darkknight/jewelrycraft/block/BlockDisplayer.java') 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 { -- cgit v1.2.3