diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..be1c43d --- /dev/null +++ b/settings.gradle @@ -0,0 +1 @@ +rootProject.name = 'EnderCore' \ No newline at end of file diff --git a/src/main/java/com/enderio/core/common/util/ItemUtil.java b/src/main/java/com/enderio/core/common/util/ItemUtil.java old mode 100644 new mode 100755 index 921a51d..f23e5bd --- a/src/main/java/com/enderio/core/common/util/ItemUtil.java +++ b/src/main/java/com/enderio/core/common/util/ItemUtil.java @@ -444,19 +444,25 @@ public class ItemUtil { if (inv instanceof TileEntityChest) { TileEntityChest chest = (TileEntityChest) inv; TileEntityChest neighbour = null; + boolean reverse = false; if (chest.adjacentChestXNeg != null) { neighbour = chest.adjacentChestXNeg; + reverse = true; } else if (chest.adjacentChestXPos != null) { neighbour = chest.adjacentChestXPos; } else if (chest.adjacentChestZNeg != null) { neighbour = chest.adjacentChestZNeg; + reverse = true; } else if (chest.adjacentChestZPos != null) { neighbour = chest.adjacentChestZPos; } if (neighbour != null) { - return new InventoryLargeChest("", inv, neighbour); + if (reverse) { + return new InventoryLargeChest("", neighbour, inv); + } else { + return new InventoryLargeChest("", inv, neighbour); + } } - return inv; } return inv; }