Fixes issue #210 "Dupe bug in crafting grid"
This commit is contained in:
@@ -96,12 +96,14 @@ public class ContainerGrid extends ContainerBase {
|
||||
if (!player.worldObj.isRemote) {
|
||||
Slot slot = inventorySlots.get(slotIndex);
|
||||
|
||||
if (slot == craftingResultSlot) {
|
||||
((TileGrid) grid).onCraftedShift(this, player);
|
||||
} else if (grid.getGridHandler() != null && slot != patternResultSlot && !(slot instanceof SlotSpecimenLegacy) && slot.getHasStack()) {
|
||||
slot.putStack(grid.getGridHandler().onInsert(slot.getStack()));
|
||||
if (slot.getHasStack()) {
|
||||
if (slot == craftingResultSlot) {
|
||||
((TileGrid) grid).onCraftedShift(this, player);
|
||||
} else if (grid.getGridHandler() != null && slot != patternResultSlot && !(slot instanceof SlotSpecimenLegacy)) {
|
||||
slot.putStack(grid.getGridHandler().onInsert(slot.getStack()));
|
||||
|
||||
detectAndSendChanges();
|
||||
detectAndSendChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user