From fc8e47b0284de1fac0b7cbe0750beac860c0d1a9 Mon Sep 17 00:00:00 2001 From: Justin Aquadro Date: Sat, 27 Feb 2016 19:25:43 -0500 Subject: [PATCH] Fix framing table duping raw drawers; fix framing table sometimes not completing crafts. --- .../storagedrawers/inventory/ContainerFramingTable.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/jaquadro/minecraft/storagedrawers/inventory/ContainerFramingTable.java b/src/com/jaquadro/minecraft/storagedrawers/inventory/ContainerFramingTable.java index e461203..650fe58 100644 --- a/src/com/jaquadro/minecraft/storagedrawers/inventory/ContainerFramingTable.java +++ b/src/com/jaquadro/minecraft/storagedrawers/inventory/ContainerFramingTable.java @@ -61,6 +61,8 @@ public class ContainerFramingTable extends Container hotbarSlots = new ArrayList(); for (int i = 0; i < 9; i++) hotbarSlots.add(addSlotToContainer(new Slot(inventory, i, InventoryX + i * 18, HotbarY))); + + onCraftMatrixChanged(tableInventory); } @Override @@ -78,7 +80,7 @@ public class ContainerFramingTable extends Container if (target != null) { Block block = Block.getBlockFromItem(target.getItem()); if (block instanceof BlockDrawersCustom) { - if (matSide != null || (matTrim == null && matFront == null)) { + if (matSide != null) { craftResult.setInventorySlotContents(0, ItemCustomDrawers.makeItemStack(block, 1, matSide, matTrim, matFront)); return; }