Fixes issue #210 "Dupe bug in crafting grid"
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
# Refined Storage Changelog
|
# Refined Storage Changelog
|
||||||
|
|
||||||
|
### 0.8.12
|
||||||
|
**Bugfixes**
|
||||||
|
- Fixed dupe bug when shift clicking output slot in grid
|
||||||
|
|
||||||
### 0.8.11
|
### 0.8.11
|
||||||
**Bugfixes**
|
**Bugfixes**
|
||||||
- Fixed minor dupe bug with JEI transferring
|
- Fixed minor dupe bug with JEI transferring
|
||||||
|
|||||||
@@ -96,12 +96,14 @@ public class ContainerGrid extends ContainerBase {
|
|||||||
if (!player.worldObj.isRemote) {
|
if (!player.worldObj.isRemote) {
|
||||||
Slot slot = inventorySlots.get(slotIndex);
|
Slot slot = inventorySlots.get(slotIndex);
|
||||||
|
|
||||||
if (slot == craftingResultSlot) {
|
if (slot.getHasStack()) {
|
||||||
((TileGrid) grid).onCraftedShift(this, player);
|
if (slot == craftingResultSlot) {
|
||||||
} else if (grid.getGridHandler() != null && slot != patternResultSlot && !(slot instanceof SlotSpecimenLegacy) && slot.getHasStack()) {
|
((TileGrid) grid).onCraftedShift(this, player);
|
||||||
slot.putStack(grid.getGridHandler().onInsert(slot.getStack()));
|
} 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