mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 06:42:56 +00:00
Fixed Reactor Port not accepting items
This commit is contained in:
1 parent
0efbd28c8f
commit
c03c7e0f7a
2 files changed
+11
No files matched your search
@@ -55,19 +55,24 @@ public final class TransporterUtils
|
||||
public static boolean isValidAcceptorOnSide(TileEntity tile, ForgeDirection side)
|
||||
{
|
||||
if(tile instanceof ITransmitterTile || !(tile instanceof IInventory))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
IInventory inventory = (IInventory)tile;
|
||||
|
||||
if(inventory.getSizeInventory() > 0)
|
||||
{
|
||||
if(!(inventory instanceof ISidedInventory))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
int[] slots = ((ISidedInventory)inventory).getAccessibleSlotsFromSide(side.getOpposite().ordinal());
|
||||
|
||||
return (slots != null && slots.length > 0);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user