Fixed a duplication bug with a disconnected Crafting Grid (2). Fixes #1989
This commit is contained in:
		| @@ -90,7 +90,7 @@ public class ContainerGrid extends ContainerBase { | |||||||
|  |  | ||||||
|                             if (itemHandler != null) { |                             if (itemHandler != null) { | ||||||
|                                 slot.putStack(itemHandler.onShiftClick((EntityPlayerMP) getPlayer(), stack)); |                                 slot.putStack(itemHandler.onShiftClick((EntityPlayerMP) getPlayer(), stack)); | ||||||
|                             } else if (slot instanceof SlotGridCrafting && mergeItemStack(stack, 4, 4 + (9 * 4), false)) { |                             } else if (slot instanceof SlotGridCrafting && mergeItemStack(stack, 14, 14 + (9 * 4), false)) { | ||||||
|                                 slot.onSlotChanged(); |                                 slot.onSlotChanged(); | ||||||
|                             } |                             } | ||||||
|                         } |                         } | ||||||
| @@ -144,8 +144,6 @@ public class ContainerGrid extends ContainerBase { | |||||||
|         } |         } | ||||||
|  |  | ||||||
|         addSlotToContainer(craftingResultSlot = new SlotGridCraftingResult(this, getPlayer(), grid, 0, 130 + 4, headerAndSlots + 22)); |         addSlotToContainer(craftingResultSlot = new SlotGridCraftingResult(this, getPlayer(), grid, 0, 130 + 4, headerAndSlots + 22)); | ||||||
|  |  | ||||||
|         transferManager.addTransfer(grid.getCraftingMatrix(), getPlayer().inventory); |  | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     private void addPatternSlots() { |     private void addPatternSlots() { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 raoulvdberge
					raoulvdberge