mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-24 05:54:25 +00:00
Fix framing table duping raw drawers; fix framing table sometimes not completing crafts.
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user