mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 15:23:16 +00:00
Prioritize IItemHandler over IInventory as it is the newer standard
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user