From db4adce2a8ccc85557f9a8d386705cb1563ee165 Mon Sep 17 00:00:00 2001 From: Christian Ehrhardt Date: Thu, 12 Feb 2015 19:18:16 -0600 Subject: [PATCH] Shift-click items to top (fill) slot --- .../inventory/container/ContainerGasTank.java | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/main/java/mekanism/common/inventory/container/ContainerGasTank.java b/src/main/java/mekanism/common/inventory/container/ContainerGasTank.java index cafbf2e18..37bd1d732 100644 --- a/src/main/java/mekanism/common/inventory/container/ContainerGasTank.java +++ b/src/main/java/mekanism/common/inventory/container/ContainerGasTank.java @@ -68,26 +68,16 @@ public class ContainerGasTank extends Container if(slotStack.getItem() instanceof IGasItem) { if(slotID != 0 && slotID != 1) - { - if(!mergeItemStack(slotStack, 1, 2, false)) - { - if(!mergeItemStack(slotStack, 0, 1, false)) - { - return null; - } - } - } - else if(slotID == 1) { if(!mergeItemStack(slotStack, 0, 1, false)) { - if(!mergeItemStack(slotStack, 2, inventorySlots.size(), false)) + if(!mergeItemStack(slotStack, 1, 2, false)) { return null; } } } - else if(slotID == 0) + else { if(!mergeItemStack(slotStack, 2, inventorySlots.size(), true)) {