mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-25 20:58:34 +01:00
fixed particles sometimes spawning in very big amounts when you're paused and unlucky please don't kill me ok
This commit is contained in:
parent
e122bf9c4b
commit
47af8bb798
1 changed files with 2 additions and 3 deletions
|
@ -115,7 +115,7 @@ public class ClientEvents {
|
||||||
ItemRangeVisualizer.VISUALIZED_BLOCKS.clear();
|
ItemRangeVisualizer.VISUALIZED_BLOCKS.clear();
|
||||||
if (!ItemRangeVisualizer.VISUALIZED_ENTITIES.isEmpty())
|
if (!ItemRangeVisualizer.VISUALIZED_ENTITIES.isEmpty())
|
||||||
ItemRangeVisualizer.VISUALIZED_ENTITIES.clear();
|
ItemRangeVisualizer.VISUALIZED_ENTITIES.clear();
|
||||||
} else {
|
} else if (!mc.isGamePaused()) {
|
||||||
if (mc.world.getTotalWorldTime() % 20 == 0) {
|
if (mc.world.getTotalWorldTime() % 20 == 0) {
|
||||||
mc.profiler.func_194340_a(() -> NaturesAura.MOD_ID + ":spawnExcessParticles");
|
mc.profiler.func_194340_a(() -> NaturesAura.MOD_ID + ":spawnExcessParticles");
|
||||||
int amount = MathHelper.floor(190 * ModConfig.client.excessParticleAmount);
|
int amount = MathHelper.floor(190 * ModConfig.client.excessParticleAmount);
|
||||||
|
@ -148,8 +148,7 @@ public class ClientEvents {
|
||||||
}
|
}
|
||||||
|
|
||||||
mc.profiler.func_194340_a(() -> NaturesAura.MOD_ID + ":updateParticles");
|
mc.profiler.func_194340_a(() -> NaturesAura.MOD_ID + ":updateParticles");
|
||||||
if (!mc.isGamePaused())
|
ParticleHandler.updateParticles();
|
||||||
ParticleHandler.updateParticles();
|
|
||||||
mc.profiler.endSection();
|
mc.profiler.endSection();
|
||||||
|
|
||||||
if (mc.player != null) {
|
if (mc.player != null) {
|
||||||
|
|
Loading…
Reference in a new issue