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

@@ -94,6 +94,11 @@ public class ContainerGrid extends ContainerBase implements IGridCraftingListene
slot.putStack(itemHandler.onShiftClick((EntityPlayerMP) getPlayer(), stack));
} else if (slot instanceof SlotGridCrafting && mergeItemStack(stack, 14, 14 + (9 * 4), false)) {
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();
}
}