Fix framing table duping raw drawers; fix framing table sometimes not completing crafts.

This commit is contained in:
Justin Aquadro committed 2016-02-27 19:25:43 -05:00
1 parent c64a43474c
commit fc8e47b028
1 file changed
+3 -1
@@ -61,6 +61,8 @@ public class ContainerFramingTable extends Container
hotbarSlots = new ArrayList<Slot>();
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;
}