Merge pull request #581 from bculkin2442/master

Proper PR for issue #563 - dont make me fix it next time
This commit is contained in:
CovertJaguar 2013-01-26 16:08:06 -08:00
commit 79274a36ec
2 changed files with 46 additions and 4 deletions

View file

@ -430,6 +430,6 @@ public class TilePump extends TileMachine implements IMachine, IPowerReceptor, I
@Override @Override
public ILiquidTank getTank(ForgeDirection direction, LiquidStack type) { public ILiquidTank getTank(ForgeDirection direction, LiquidStack type) {
return null; return tank;
} }
} }

View file

@ -449,9 +449,51 @@ public class TileRefinery extends TileMachine implements ITankContainer, IPowerR
@Override @Override
public ILiquidTank getTank(ForgeDirection direction, LiquidStack type) { public ILiquidTank getTank(ForgeDirection direction, LiquidStack type) {
// TODO Auto-generated method stub ForgeDirection dir = ForgeDirection.values()[worldObj.getBlockMetadata(xCoord, yCoord, zCoord)];
return null;
} switch (direction) {
case NORTH:
switch (dir) {
case WEST:
return ingredient2;
case EAST:
return ingredient1;
default:
return null;
}
case SOUTH:
switch (dir) {
case WEST:
return ingredient1;
case EAST:
return ingredient2;
default:
return null;
}
case EAST:
switch (dir) {
case NORTH:
return ingredient2;
case SOUTH:
return ingredient1;
default:
return null;
}
case WEST:
switch (dir) {
case NORTH:
return ingredient1;
case SOUTH:
return ingredient2;
default:
return null;
}
case DOWN:
return result;
default:
return null;
}
}
// Network // Network