This commit is contained in:
asiekierka 2016-01-12 17:57:44 +01:00
parent ff48e13d87
commit 09917470e1

View file

@ -302,7 +302,7 @@ public class TileTank extends TileBuildCraft implements IFluidHandler {
public int getFluidLightLevel() {
FluidStack tankFluid = tank.getFluid();
return tankFluid == null ? 0 : tankFluid.getFluid().getLuminosity(tankFluid);
return tankFluid == null || tankFluid.amount == 0 ? 0 : tankFluid.getFluid().getLuminosity(tankFluid);
}
public int calculateComparatorInputOverride() {