Another change in pollution particle generators

This commit is contained in:
Technus 2016-10-26 11:33:38 +02:00
parent d30982f327
commit 41c1d2bd15

View file

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