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

@@ -3,6 +3,7 @@
### 1.6.10
- Fixed client FPS stalling when using "@" mod search in the Grid (raoulvdberge)
- Fixed fluid inputs/outputs in the Pattern Grid not being set when you re-insert a Pattern with fluid inputs/outputs (raoulvdberge)
- Fixed bug where the Pattern Grid doesn't update it's output slot when manually configuring a crafting pattern (raoulvdberge)
### 1.6.9
- Fixed OpenComputers "unknown error" when using extract item API (raoulvdberge)

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;