Particles Rules now have greater effect.

This commit is contained in:
AlgorithmX2
2014-02-13 23:31:02 -06:00
parent 7cf155b520
commit c3cf81b03f
+3 -2
View File
@@ -109,9 +109,10 @@ public class ClientHelper extends ServerHelper
@Override @Override
public boolean shouldAddParticles(Random r) public boolean shouldAddParticles(Random r)
{ {
if ( Minecraft.getMinecraft().gameSettings.particleSetting == 0 ) int setting = Minecraft.getMinecraft().gameSettings.particleSetting;
if ( setting == 0 )
return true; return true;
return r.nextInt( Minecraft.getMinecraft().gameSettings.particleSetting ) == 0; return r.nextInt( 2 * (setting + 1) ) == 0;
} }
} }