Bins only have accessible slots on top and bottom

This commit is contained in:
Aidan C. Brady 2013-11-13 08:12:25 -05:00
parent 8e08c9adb8
commit b04ff8d5cc
2 changed files with 15 additions and 1 deletions

View file

@ -385,9 +385,12 @@ public class TileEntityBin extends TileEntityBasicBlock implements ISidedInvento
{
return new int[] {1};
}
else {
else if(side == 0)
{
return new int[] {0};
}
return null;
}
@Override

View file

@ -7,6 +7,7 @@ import mekanism.api.EnumColor;
import mekanism.api.IConfigurable;
import mekanism.api.Object3D;
import mekanism.api.transmitters.ITransmitter;
import mekanism.common.tileentity.TileEntityBin;
import mekanism.common.tileentity.TileEntityLogisticalSorter;
import mekanism.common.tileentity.TileEntityLogisticalTransporter;
import mekanism.common.transporter.InvStack;
@ -236,6 +237,11 @@ public final class TransporterUtils
if(slots != null && slots.length != 0)
{
if(force && sidedInventory instanceof TileEntityBin && ForgeDirection.getOrientation(side).getOpposite().ordinal() == 0)
{
slots = sidedInventory.getAccessibleSlotsFromSide(1);
}
for(int get = 0; get <= slots.length - 1; get++)
{
int slotID = slots[get];
@ -371,6 +377,11 @@ public final class TransporterUtils
if(slots != null && slots.length != 0)
{
if(force && sidedInventory instanceof TileEntityBin && ForgeDirection.getOrientation(side).getOpposite().ordinal() == 0)
{
slots = sidedInventory.getAccessibleSlotsFromSide(1);
}
for(int get = 0; get <= slots.length - 1; get++)
{
int slotID = slots[get];