Another change in pollution particle generators
This commit is contained in:
parent
d30982f327
commit
41c1d2bd15
1 changed files with 13 additions and 6 deletions
|
@ -98,12 +98,19 @@ public class GT_MetaTileEntity_Hatch_Muffler extends GT_MetaTileEntity_Hatch {
|
||||||
double xPos=aDir.offsetX+aMuffler.getXCoord()+0.25F;
|
double xPos=aDir.offsetX+aMuffler.getXCoord()+0.25F;
|
||||||
double yPos=aDir.offsetX+aMuffler.getYCoord()+0.05F;
|
double yPos=aDir.offsetX+aMuffler.getYCoord()+0.05F;
|
||||||
double zPos=aDir.offsetX+aMuffler.getZCoord()+0.25F;
|
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);
|
float temp=(new XSTR()).nextFloat();
|
||||||
if(GT_Pollution.getPollutionAtCoords(this.getBaseMetaTileEntity().getXCoord(), this.getBaseMetaTileEntity().getZCoord())>= GT_Mod.gregtechproxy.mPollutionSmogLimit) {
|
if(temp*100<calculatePollutionReduction(100))
|
||||||
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 + temp*0.5F, yPos, zPos + (new XSTR()).nextFloat()*0.5F, 0.0D, 0.3D, 0.0D);
|
||||||
aWorld.spawnParticle("largesmoke", xPos + (new XSTR()).nextFloat()*0.5F, yPos, zPos + (new XSTR()).nextFloat()*0.5F, 0.0D, 0.6D, 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue