From 1e1edf96a7e5b0b9b566ea0062a9b4b34f4125ad Mon Sep 17 00:00:00 2001 From: Trcx Date: Thu, 19 Mar 2015 21:54:12 -0500 Subject: [PATCH] fixed a bucket bug --- src/main/java/com/trcx/swapper/Common/Item/Swapper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/trcx/swapper/Common/Item/Swapper.java b/src/main/java/com/trcx/swapper/Common/Item/Swapper.java index 53e094e..8897030 100644 --- a/src/main/java/com/trcx/swapper/Common/Item/Swapper.java +++ b/src/main/java/com/trcx/swapper/Common/Item/Swapper.java @@ -110,7 +110,9 @@ public static void putLastStack(ItemStack swapper, ItemStack is){ ItemStack currentIs = getLastStack(swapper); if (is != null) { if (is.stackSize > 0) { - if (is.getItem() == currentIs.getItem() || currentIs.getItem().getContainerItem() == is.getItem()) { + if (is.getItem() == currentIs.getItem() || + currentIs.getItem().getContainerItem() == is.getItem() || + is.getItem().getContainerItem() == currentIs.getItem()) { inv.setInventorySlotContents(slot, is); } // else don't save, it'd probably dupe is } else {