Fixes issue #210 "Dupe bug in crafting grid"

This commit is contained in:
Raoul Van den Berge
2016-07-20 00:32:48 +02:00
parent 9eb70afc2b
commit d5d98a5584
2 changed files with 11 additions and 5 deletions

View File

@@ -1,5 +1,9 @@
# Refined Storage Changelog
### 0.8.12
**Bugfixes**
- Fixed dupe bug when shift clicking output slot in grid
### 0.8.11
**Bugfixes**
- Fixed minor dupe bug with JEI transferring

View File

@@ -96,14 +96,16 @@ public class ContainerGrid extends ContainerBase {
if (!player.worldObj.isRemote) {
Slot slot = inventorySlots.get(slotIndex);
if (slot.getHasStack()) {
if (slot == craftingResultSlot) {
((TileGrid) grid).onCraftedShift(this, player);
} else if (grid.getGridHandler() != null && slot != patternResultSlot && !(slot instanceof SlotSpecimenLegacy) && slot.getHasStack()) {
} else if (grid.getGridHandler() != null && slot != patternResultSlot && !(slot instanceof SlotSpecimenLegacy)) {
slot.putStack(grid.getGridHandler().onInsert(slot.getStack()));
detectAndSendChanges();
}
}
}
return null;
}