mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-20 12:19:55 +00:00
Merge branch '1.7' of https://github.com/CrazyPants/EnderIO into 1.7
This commit is contained in:
commit
cfde3bed5a
1 file changed
+6
-1
@@ -378,7 +378,12 @@ public class ItemConduit extends AbstractConduit implements IItemConduit {
|
||||
|
||||
@Override
|
||||
public boolean canConnectToExternal(ForgeDirection direction, boolean ignoreDisabled) {
|
||||
return getExternalInventory(direction) != null;
|
||||
IInventory inv = getExternalInventory(direction);
|
||||
if (inv instanceof ISidedInventory) {
|
||||
return ((ISidedInventory)inv).getAccessibleSlotsFromSide(direction.getOpposite().ordinal()).length != 0;
|
||||
} else {
|
||||
return inv != null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user