Make the light emitted by tanks proportional to how full they are

This commit is contained in:
Bernhard Bonigl committed 2014-08-21 22:26:11 +02:00
1 parent 211cb9b2ff
commit 762f74bc7a
1 file changed
+1 -1
@@ -101,7 +101,7 @@ public class LavaTankLogic extends MultiServantLogic implements IFluidHandler
{
if (containsFluid())
{
return tank.getFluid().getFluid().getLuminosity();
return (tank.getFluid().getFluid().getLuminosity() * tank.getFluidAmount()) / tank.getCapacity();
}
return 0;
}