Prioritize IItemHandler over IInventory as it is the newer standard

This commit is contained in:
pupnewfster committed 2019-03-21 11:54:25 -04:00
1 parent 21017efc68
commit ad6007a45b
6 files changed
+180 -181

No files matched your search

@@ -29,7 +29,9 @@ public final class TransporterUtils {
return false;
}
if (tile instanceof IInventory) {
if (InventoryUtils.isItemHandler(tile, side.getOpposite())) {
return true;
} else if (tile instanceof IInventory) {
IInventory inventory = (IInventory) tile;
if (inventory.getSizeInventory() > 0) {
@@ -41,8 +43,6 @@ public final class TransporterUtils {
return slots.length > 0;
}
} else {
return InventoryUtils.isItemHandler(tile, side.getOpposite());
}
return false;