Skip to content

Commit

Permalink
Fix tanks not implementing fluid-api properly. canDrain/canFill #1208
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Dec 2, 2014
1 parent 8623b09 commit 3e0c4f5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/tconstruct/smeltery/logic/LavaTankLogic.java
Expand Up @@ -57,15 +57,13 @@ public FluidStack drain (ForgeDirection from, FluidStack resource, boolean doDra
@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
Expand Down

0 comments on commit 3e0c4f5

Please sign in to comment.