diff options
author | Technus <daniel112092@gmail.com> | 2016-10-26 11:33:38 +0200 |
---|---|---|
committer | Technus <daniel112092@gmail.com> | 2016-10-26 11:33:38 +0200 |
commit | 41c1d2bd153e2d90091694fca1fba07c07a9cb8f (patch) | |
tree | d6373e30cee1468012e8d83d3d8645c2f772b0cc /src/main/java/gregtech/api | |
parent | d30982f327f3e38b36962ea935c76f24371d4530 (diff) | |
download | GT5-Unofficial-41c1d2bd153e2d90091694fca1fba07c07a9cb8f.tar.gz GT5-Unofficial-41c1d2bd153e2d90091694fca1fba07c07a9cb8f.tar.bz2 GT5-Unofficial-41c1d2bd153e2d90091694fca1fba07c07a9cb8f.zip |
Another change in pollution particle generators
Diffstat (limited to 'src/main/java/gregtech/api')
-rw-r--r-- | src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch_Muffler.java | 19 |
1 files 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 aaad507039..9c90176cb4 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<calculatePollutionReduction(100)){ - aWorld.spawnParticle("largesmoke", xPos + (new XSTR()).nextFloat()*0.5F, yPos, zPos + (new XSTR()).nextFloat()*0.5F, 0.0D, 0.3D, 0.0D); - if(GT_Pollution.getPollutionAtCoords(this.getBaseMetaTileEntity().getXCoord(), this.getBaseMetaTileEntity().getZCoord())>= 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<calculatePollutionReduction(100)) + aWorld.spawnParticle("largesmoke", xPos + temp*0.5F, yPos, zPos + (new XSTR()).nextFloat()*0.5F, 0.0D, 0.3D, 0.0D); + + if(GT_Pollution.getPollutionAtCoords(this.getBaseMetaTileEntity().getXCoord(), this.getBaseMetaTileEntity().getZCoord())>= GT_Mod.gregtechproxy.mPollutionSmogLimit) { + temp=(new XSTR()).nextFloat(); + if(temp*100<calculatePollutionReduction(100)) + aWorld.spawnParticle("largesmoke", xPos + temp*0.5F, yPos, zPos + (new XSTR()).nextFloat()*0.5F, 0.0D, 0.45D, 0.0D); + temp=(new XSTR()).nextFloat(); + if(temp*100<calculatePollutionReduction(100)) + aWorld.spawnParticle("largesmoke", xPos + temp*0.5F, yPos, zPos + (new XSTR()).nextFloat()*0.5F, 0.0D, 0.6D, 0.0D); } + } } |