fix #3174
This commit is contained in:
parent
ff48e13d87
commit
09917470e1
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue