From 8dff4e384a10e354b1dc9cac66dba418f2b10ab2 Mon Sep 17 00:00:00 2001 From: DominicKarma <51094361+DominicKarma@users.noreply.github.com> Date: Tue, 8 Feb 2022 19:07:47 -0600 Subject: [PATCH] Update GeneralParticleHandler.cs --- Particles/GeneralParticleHandler.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Particles/GeneralParticleHandler.cs b/Particles/GeneralParticleHandler.cs index 53be50be67..99baea42fd 100644 --- a/Particles/GeneralParticleHandler.cs +++ b/Particles/GeneralParticleHandler.cs @@ -72,10 +72,15 @@ namespace CalamityMod.Particles } /// - /// Spawns the particle instance provided into the world. If the particle limit is reached but the particle is marked as important, it will try to replace a non important particle. - /// - public static void SpawnParticle(Particle particle) + /// Spawns the particle instance provided into the world. If the particle limit is reached but the particle is marked as important, it will try to replace a non important particle. + /// + public static void SpawnParticle(Particle particle) { + // Don't queue particles if the game is paused. + // This precedent is established with how Dust instances are created. + if (Main.gamePaused) + return; + if (particles.Count >= CalamityConfig.Instance.ParticleLimit && !particle.Important) return;