Fix machines being able to be placed facing up or down

This commit is contained in:
Aidan Brady 2013-11-23 00:23:56 -05:00
parent 2ef3b1be6c
commit 4c68aa2ca2
6 changed files with 36 additions and 0 deletions

View file

@ -222,6 +222,12 @@ public class TileEntityChargepad extends TileEntityElectricBlock implements IAct
return data;
}
@Override
public boolean canSetFacing(int side)
{
return side != 0 && side != 1;
}
@Override
public double transferEnergyToAcceptor(double amount)
{

View file

@ -171,6 +171,12 @@ public class TileEntityElectricChest extends TileEntityElectricBlock implements
{
return false;
}
@Override
public boolean canSetFacing(int side)
{
return side != 0 && side != 1;
}
@Override
public boolean acceptsEnergyFrom(TileEntity emitter, ForgeDirection direction)

View file

@ -486,6 +486,12 @@ public class TileEntityElectricPump extends TileEntityElectricBlock implements I
return getConsumingSides().contains(direction);
}
@Override
public boolean canSetFacing(int side)
{
return side != 0 && side != 1;
}
@Override
public int[] getAccessibleSlotsFromSide(int side)
{

View file

@ -693,6 +693,12 @@ public class TileEntityFactory extends TileEntityElectricBlock implements IEnerg
return sideOutputs.get(sideConfig[MekanismUtils.getBaseOrientation(side, facing)]).availableSlots;
}
@Override
public boolean canSetFacing(int side)
{
return side != 0 && side != 1;
}
@Override
public ArrayList<SideData> getSideData()
{

View file

@ -289,6 +289,12 @@ public class TileEntityGasTank extends TileEntityContainerBlock implements IGasS
return data;
}
@Override
public boolean canSetFacing(int side)
{
return side != 0 && side != 1;
}
@Override
public boolean canTubeConnect(ForgeDirection side)

View file

@ -520,6 +520,12 @@ public class TileEntityMetallurgicInfuser extends TileEntityElectricBlock implem
{
return MekanismUtils.getEnergy(getEnergyMultiplier(), MAX_ELECTRICITY);
}
@Override
public boolean canSetFacing(int side)
{
return side != 0 && side != 1;
}
@Override
public double demandedEnergyUnits()