Fixed a duplication bug with a disconnected Crafting Grid. Fixes #1989
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
### 1.6.6
|
||||
- Added new Crafter modes: ignore redstone signal, redstone signal unlocks autocrafting, redstone signal locks autocrafting and redstone pulse inserts next set (replacement for blocking mode) (raoulvdberge)
|
||||
- Fixed an autocrafting bug where it crashed when external inventories couldn't be filled (raoulvdberge)
|
||||
- Fixed a duplication bug with a disconnected Crafting Grid (raoulvdberge)
|
||||
|
||||
### 1.6.5
|
||||
- Fixed Refined Storage silicon's oredict entry being registered too late (raoulvdberge)
|
||||
|
||||
@@ -144,6 +144,8 @@ public class ContainerGrid extends ContainerBase {
|
||||
}
|
||||
|
||||
addSlotToContainer(craftingResultSlot = new SlotGridCraftingResult(this, getPlayer(), grid, 0, 130 + 4, headerAndSlots + 22));
|
||||
|
||||
transferManager.addTransfer(grid.getCraftingMatrix(), getPlayer().inventory);
|
||||
}
|
||||
|
||||
private void addPatternSlots() {
|
||||
|
||||
@@ -41,6 +41,10 @@ public class TransferManager {
|
||||
addTransfer(new InventoryWrapperInventory(from), new InventoryWrapperItemHandler(to));
|
||||
}
|
||||
|
||||
public void addTransfer(IInventory from, IInventory to) {
|
||||
addTransfer(new InventoryWrapperInventory(from), new InventoryWrapperInventory(to));
|
||||
}
|
||||
|
||||
public void addFilterTransfer(IInventory from, IItemHandlerModifiable itemTo, FluidInventory fluidTo, Supplier<Integer> typeGetter) {
|
||||
addTransfer(new InventoryWrapperInventory(from), new InventoryWrapperFilter(itemTo, fluidTo, typeGetter));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user