From 41c1d2bd153e2d90091694fca1fba07c07a9cb8f Mon Sep 17 00:00:00 2001 From: Technus Date: Wed, 26 Oct 2016 11:33:38 +0200 Subject: [PATCH] Another change in pollution particle generators --- .../GT_MetaTileEntity_Hatch_Muffler.java | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Muffler.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Muffler.java index aaad5070..9c90176c 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Muffler.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Muffler.java @@ -98,12 +98,19 @@ public class GT_MetaTileEntity_Hatch_Muffler extends GT_MetaTileEntity_Hatch { double xPos=aDir.offsetX+aMuffler.getXCoord()+0.25F; double yPos=aDir.offsetX+aMuffler.getYCoord()+0.05F; double zPos=aDir.offsetX+aMuffler.getZCoord()+0.25F; - if((new XSTR()).nextFloat()*100= GT_Mod.gregtechproxy.mPollutionSmogLimit) { - aWorld.spawnParticle("largesmoke", xPos + (new XSTR()).nextFloat()*0.5F, yPos, zPos + (new XSTR()).nextFloat()*0.5F, 0.0D, 0.45D, 0.0D); - aWorld.spawnParticle("largesmoke", xPos + (new XSTR()).nextFloat()*0.5F, yPos, zPos + (new XSTR()).nextFloat()*0.5F, 0.0D, 0.6D, 0.0D); - } + + float temp=(new XSTR()).nextFloat(); + if(temp*100= GT_Mod.gregtechproxy.mPollutionSmogLimit) { + temp=(new XSTR()).nextFloat(); + if(temp*100