Skip to content

Commit

Permalink
fixed a bucket bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Trcx528 committed Mar 20, 2015
1 parent bd2b83d commit 1e1edf9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/trcx/swapper/Common/Item/Swapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1e1edf9

Please sign in to comment.