Skip to content

Commit

Permalink
Fixed Lava (Fuel) gague in the smeltery
Browse files Browse the repository at this point in the history
  • Loading branch information
Glassmaker committed Jul 15, 2014
1 parent 582c9e9 commit eb50bb9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/tconstruct/smeltery/logic/SmelteryLogic.java
Expand Up @@ -524,7 +524,7 @@ void updateTemperatures ()

public void updateFuelDisplay ()
{
if (activeLavaTank == null || useTime > 0)
if (activeLavaTank == null)
return;

if (!worldObj.blockExists(activeLavaTank.x, activeLavaTank.y, activeLavaTank.z))
Expand All @@ -541,10 +541,10 @@ public void updateFuelDisplay ()
fuelGague = 0;
return;
}

if (tankContainer instanceof IFluidHandler)
{
needsUpdate = true;
FluidStack liquid = ((IFluidHandler) tankContainer).drain(ForgeDirection.DOWN, 150, false);
FluidStack liquid = ((IFluidHandler) tankContainer).drain(ForgeDirection.DOWN, 4000, false);
if (liquid != null && liquid.getFluid().getBlock() == Blocks.lava)
{
FluidTankInfo[] info = ((IFluidHandler) tankContainer).getTankInfo(ForgeDirection.DOWN);
Expand All @@ -561,6 +561,7 @@ public void updateFuelDisplay ()
fuelGague = 0;
}
}

}

void updateFuelGague () // TODO: Call this method when the GUI is opened
Expand Down

0 comments on commit eb50bb9

Please sign in to comment.