Merge pull request #1145 from BallOfEnergy1/master

Fixed a small bug with the fluid burner.
This commit is contained in:
HbmMods 2023-08-24 07:38:12 +02:00 committed by GitHub
commit 1a0f4d6b10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}