Fixed another duplication bug with a disconnected Crafting Grid. Fixes #2094

This commit is contained in:
raoulvdberge
2018-11-18 17:03:19 +01:00
parent b2ecc5c06d
commit 9afcd9e392
2 changed files with 6 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
- Fixed Refined Storage jars not being signed (raoulvdberge) - Fixed Refined Storage jars not being signed (raoulvdberge)
- Fixed client stalling when trying to search with # for tooltips (raoulvdberge) - Fixed client stalling when trying to search with # for tooltips (raoulvdberge)
- Fixed crafting task stalling when there's not enough space in the inventory (raoulvdberge) - Fixed crafting task stalling when there's not enough space in the inventory (raoulvdberge)
- Fixed another duplication bug with a disconnected Crafting Grid (raoulvdberge)
- Removed getMissingItems() and getMissingFluids() functions from the OpenComputers integration, that info is now accessible through schedule(Fluid)Task(). If you just want to check if there are missing items/fluids but don't want to start an actual task, use the "canSchedule" parameter (raoulvdberge) - Removed getMissingItems() and getMissingFluids() functions from the OpenComputers integration, that info is now accessible through schedule(Fluid)Task(). If you just want to check if there are missing items/fluids but don't want to start an actual task, use the "canSchedule" parameter (raoulvdberge)
- Updated Russian translation (kellixon) - Updated Russian translation (kellixon)
- Added fluid functions for the fluid autocrafting to the OpenComputers integration (raoulvdberge) - Added fluid functions for the fluid autocrafting to the OpenComputers integration (raoulvdberge)

View File

@@ -94,6 +94,11 @@ public class ContainerGrid extends ContainerBase implements IGridCraftingListene
slot.putStack(itemHandler.onShiftClick((EntityPlayerMP) getPlayer(), stack)); slot.putStack(itemHandler.onShiftClick((EntityPlayerMP) getPlayer(), stack));
} else if (slot instanceof SlotGridCrafting && mergeItemStack(stack, 14, 14 + (9 * 4), false)) { } else if (slot instanceof SlotGridCrafting && mergeItemStack(stack, 14, 14 + (9 * 4), false)) {
slot.onSlotChanged(); slot.onSlotChanged();
// This is needed because when a grid is disconnected,
// and a player shift clicks from the matrix to the inventory (this if case),
// the crafting inventory isn't being notified.
grid.onCraftingMatrixChanged();
} }
} }