Changed TileFluidDistribution to return network tank instead of internal tank
This commit is contained in:
parent
7f81401c32
commit
2a0d5454eb
2 changed files with 2 additions and 20 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue