Changed TileFluidDistribution to return network tank instead of internal tank

This commit is contained in:
Robert S 2014-05-16 10:30:36 -04:00
parent 7f81401c32
commit 2a0d5454eb
2 changed files with 2 additions and 20 deletions

View file

@ -62,25 +62,7 @@ public class TileTank extends TileFluidDistribution implements IComparatorInputO
protected boolean use(EntityPlayer player, int side, Vector3 vector3) protected boolean use(EntityPlayer player, int side, Vector3 vector3)
{ {
if (!world().isRemote) if (!world().isRemote)
{ /* {
if (player.isSneaking())
{
ItemStack dropStack = ItemBlockTank.getWrenchedItem(world(), position());
if (dropStack != null)
{
if (player.getHeldItem() == null)
{
player.inventory.setInventorySlotContents(player.inventory.currentItem, dropStack);
}
else
{
InventoryUtility.dropItemStack(world(), position(), dropStack);
}
position().setBlock(world(), 0);
}
} */
return FluidUtility.playerActivatedFluidItem(world(), x(), y(), z(), player, side); return FluidUtility.playerActivatedFluidItem(world(), x(), y(), z(), player, side);
} }

View file

@ -81,7 +81,7 @@ public abstract class TileFluidDistribution extends TileFluidNode implements IFl
@Override @Override
public FluidTankInfo[] getTankInfo(ForgeDirection from) public FluidTankInfo[] getTankInfo(ForgeDirection from)
{ {
return new FluidTankInfo[] { getInternalTank().getInfo() }; return new FluidTankInfo[] { getNetwork().getTank().getInfo() };
} }
@Override @Override