From 19f59d407070897ca6fd21609b32dbe547e58815 Mon Sep 17 00:00:00 2001 From: raoulvdberge Date: Fri, 9 Jun 2017 22:55:52 +0200 Subject: [PATCH] You can now shift click items from the Grid crafting slots to the player inventory when the Grid is disconnected, fixes #1287 --- CHANGELOG.md | 1 + .../raoulvdberge/refinedstorage/container/ContainerGrid.java | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 64cc9d303..3177eea48 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Updated Forge to 2315 (raoulvdberge) - Updated JEI to 4.5.0 (raoulvdberge) - Removed Collosal Chests integration (raoulvdberge) +- You can now shift click items from the Grid crafting slots to the player inventory when the Grid is disconnected (raoulvdberge) ### 1.4.11 - Removed debug log configuration option, as it's no longer needed (raoulvdberge) diff --git a/src/main/java/com/raoulvdberge/refinedstorage/container/ContainerGrid.java b/src/main/java/com/raoulvdberge/refinedstorage/container/ContainerGrid.java index 42a0a78ee..c4dc2dbe9 100755 --- a/src/main/java/com/raoulvdberge/refinedstorage/container/ContainerGrid.java +++ b/src/main/java/com/raoulvdberge/refinedstorage/container/ContainerGrid.java @@ -215,6 +215,8 @@ public class ContainerGrid extends ContainerBase { if (itemHandler != null) { slot.putStack(itemHandler.onShiftClick((EntityPlayerMP) player, stack)); + } else if (slot instanceof SlotGridCrafting && mergeItemStack(stack, 4, 4 + (9 * 4), false)) { + slot.onSlotChanged(); } } @@ -228,7 +230,7 @@ public class ContainerGrid extends ContainerBase { @Override protected boolean isHeldItemDisabled() { - // Here we check for the concrete portable grid type, not IPortableGrid, because we can move the held item in the tile + // Here we check for the concrete portable grid type, not IPortableGrid, because we *CAN* move the held item in the portable grid tile return grid instanceof WirelessGrid || grid instanceof PortableGrid; } }