From 5cb4c6e24033cf337812390d99a6817d24d21eab Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Sun, 12 Feb 2017 20:43:03 +0300 Subject: Removed explosion radius limitations. Explosion calculation optimized (reduced memory usage). One more detonator and explosive pack recipe. GT6 recipes for both chemical reactors and cryogenic distiller. Max stack size of muffle furnace is limited to 32. A lot of old features are removed. --- ihl/explosion/ExplosionEntityFX.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ihl/explosion/ExplosionEntityFX.java') diff --git a/ihl/explosion/ExplosionEntityFX.java b/ihl/explosion/ExplosionEntityFX.java index 38e1034..ffa91fa 100644 --- a/ihl/explosion/ExplosionEntityFX.java +++ b/ihl/explosion/ExplosionEntityFX.java @@ -45,7 +45,7 @@ public class ExplosionEntityFX extends EntityFX { this.lastTickPosZ=this.posZ=this.prevPosZ=this.center[2]=centerZ1; this.radius=radius1; float r2 = radius*radius; - int numParticles = (int)(r2*radius/32)+64; + int numParticles = Math.min((int)(r2*radius/32)+64,512); this.startPos = new double[numParticles][3]; this.pos = new double[numParticles][3]; this.prevPos = new double[numParticles][3]; -- cgit v1.2.3