From 26dcae3f9b1c04933529387ab3cc4661d7dbda9f Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Fri, 23 May 2014 20:35:27 -0500 Subject: [PATCH] Send Crafting Gui Packet to open second gui. --- client/gui/AEBaseGui.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/client/gui/AEBaseGui.java b/client/gui/AEBaseGui.java index d8eaf58ad..24aa6a826 100644 --- a/client/gui/AEBaseGui.java +++ b/client/gui/AEBaseGui.java @@ -273,6 +273,8 @@ public abstract class AEBaseGui extends GuiContainer case 0: // pickup / set-down. action = ctrlDown == 1 ? InventoryAction.SPLIT_OR_PLACESINGLE : InventoryAction.PICKUP_OR_SETDOWN; stack = ((SlotME) slot).getAEStack(); + if ( stack != null && action == InventoryAction.PICKUP_OR_SETDOWN && stack.getStackSize() == 0 ) + action = InventoryAction.CRAFT_ITEM; break; case 1: action = ctrlDown == 1 ? InventoryAction.PICKUP_SINGLE : InventoryAction.SHIFT_CLICK; @@ -280,13 +282,18 @@ public abstract class AEBaseGui extends GuiContainer break; case 3: // creative dupe: - if ( player.capabilities.isCreativeMode ) + + stack = ((SlotME) slot).getAEStack(); + if ( stack != null && stack.isCraftable() ) + { + action = InventoryAction.CRAFT_ITEM; + } + else if ( player.capabilities.isCreativeMode ) { IAEItemStack slotItem = ((SlotME) slot).getAEStack(); if ( slotItem != null ) { action = InventoryAction.CREATIVE_DUPLICATE; - stack = slotItem; } } break;