mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-25 22:44:23 +00:00
Fix tanks not implementing fluid-api properly. canDrain/canFill #1208
This commit is contained in:
1 parent
8623b0978b
commit
3e0c4f5e0e
1 file changed
+2
-4
@@ -57,15 +57,13 @@ public class LavaTankLogic extends MultiServantLogic implements IFluidHandler
|
||||
@Override
|
||||
public boolean canFill (ForgeDirection from, Fluid fluid)
|
||||
{
|
||||
// return tank.fill(fluid, false) > 0;
|
||||
return false;
|
||||
return tank.getFluidAmount() == 0 || tank.getFluidAmount() < tank.getCapacity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canDrain (ForgeDirection from, Fluid fluid)
|
||||
{
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
return tank.getFluidAmount() > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user