From 47af8bb7983d167255e4798dc74a6672c4e36a1e Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 24 Feb 2019 23:54:58 +0100 Subject: [PATCH] fixed particles sometimes spawning in very big amounts when you're paused and unlucky please don't kill me ok --- .../java/de/ellpeck/naturesaura/events/ClientEvents.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/ellpeck/naturesaura/events/ClientEvents.java b/src/main/java/de/ellpeck/naturesaura/events/ClientEvents.java index 58513157..0cf725de 100644 --- a/src/main/java/de/ellpeck/naturesaura/events/ClientEvents.java +++ b/src/main/java/de/ellpeck/naturesaura/events/ClientEvents.java @@ -115,7 +115,7 @@ public class ClientEvents { ItemRangeVisualizer.VISUALIZED_BLOCKS.clear(); if (!ItemRangeVisualizer.VISUALIZED_ENTITIES.isEmpty()) ItemRangeVisualizer.VISUALIZED_ENTITIES.clear(); - } else { + } else if (!mc.isGamePaused()) { if (mc.world.getTotalWorldTime() % 20 == 0) { mc.profiler.func_194340_a(() -> NaturesAura.MOD_ID + ":spawnExcessParticles"); int amount = MathHelper.floor(190 * ModConfig.client.excessParticleAmount); @@ -148,8 +148,7 @@ public class ClientEvents { } mc.profiler.func_194340_a(() -> NaturesAura.MOD_ID + ":updateParticles"); - if (!mc.isGamePaused()) - ParticleHandler.updateParticles(); + ParticleHandler.updateParticles(); mc.profiler.endSection(); if (mc.player != null) {