Fixed bug where the Pattern Grid doesn't update it's output slot when manually configuring a crafting pattern. Fixes #2057

This commit is contained in:
raoulvdberge
2018-10-31 20:41:08 +01:00
parent 5451fd78de
commit 68e857cc9c
3 changed files with 2 additions and 5 deletions

View File

@@ -77,8 +77,6 @@ public class ContainerGrid extends ContainerBase implements IGridCraftingListene
if (slot == craftingResultSlot) {
grid.onCraftedShift(getPlayer());
onCraftingMatrixChanged();
detectAndSendChanges();
} else {
ItemStack stack = slot.getStack();
@@ -208,7 +206,7 @@ public class ContainerGrid extends ContainerBase implements IGridCraftingListene
for (int i = 0; i < inventorySlots.size(); ++i) {
Slot slot = inventorySlots.get(i);
if (slot instanceof SlotGridCrafting || slot == craftingResultSlot) {
if (slot instanceof SlotGridCrafting || slot == craftingResultSlot || slot == patternResultSlot) {
for (IContainerListener listener : listeners) {
// @Volatile: We can't use IContainerListener#sendSlotContents since EntityPlayerMP blocks SlotCrafting changes...
if (listener instanceof EntityPlayerMP) {

View File

@@ -26,8 +26,6 @@ public class SlotGridCraftingResult extends SlotCrafting {
if (!player.getEntityWorld().isRemote) {
grid.onCrafted(player);
container.onCraftingMatrixChanged();
}
return ItemStack.EMPTY;