mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Fixing minor bug where the fluid burner would produce soot even when there was no fluid to consume.
This commit is contained in:
parent
27648ca7a6
commit
b9b48f5a60
@ -82,7 +82,7 @@ public class TileEntityHeaterOilburner extends TileEntityMachinePolluting implem
|
||||
|
||||
this.heatEnergy += heat * toBurn;
|
||||
|
||||
if(worldObj.getTotalWorldTime() % 20 == 0) {
|
||||
if(worldObj.getTotalWorldTime() % 20 == 0 && toBurn > 0) {
|
||||
this.pollute(PollutionType.SOOT, PollutionHandler.SOOT_PER_SECOND * burnRate * 0.5F);
|
||||
if(tank.getTankType().hasTrait(FT_Leaded.class)) this.pollute(PollutionType.HEAVYMETAL, PollutionHandler.HEAVY_METAL_PER_SECOND * burnRate * 0.5F);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user