mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Fixed loop with Portable Tank push
This commit is contained in:
1 parent
b7a142ba6b
commit
62e14b3a2e
1 file changed
+10
@@ -468,6 +468,16 @@ public class TileEntityPortableTank extends TileEntityContainerBlock implements
|
||||
@Override
|
||||
public boolean canFill(ForgeDirection from, Fluid fluid)
|
||||
{
|
||||
if(from == ForgeDirection.UP)
|
||||
{
|
||||
TileEntity tile = Coord4D.get(this).getFromSide(ForgeDirection.DOWN).getTileEntity(worldObj);
|
||||
|
||||
if(!(tile instanceof TileEntityPortableTank))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return (from == ForgeDirection.UP || from == ForgeDirection.DOWN) && (fluidTank.getFluid() == null || fluidTank.getFluid().getFluid() == fluid);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user