From 07de47b43573e1f31f7c40788f49e75209b7c20d Mon Sep 17 00:00:00 2001 From: Gingerbeard <68350259+Gingerbeard5773@users.noreply.github.com> Date: Mon, 9 Nov 2026 13:53:37 -0500 Subject: [PATCH] Fix Trail crash Fixes a crash caused by bad particles in the trail module. --- .../meteorclient/systems/modules/render/Trail.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/meteordevelopment/meteorclient/systems/modules/render/Trail.java b/src/main/java/meteordevelopment/meteorclient/systems/modules/render/Trail.java index 9b74b47ca9a..8453bf47d5b 100644 --- a/src/main/java/meteordevelopment/meteorclient/systems/modules/render/Trail.java +++ b/src/main/java/meteordevelopment/meteorclient/systems/modules/render/Trail.java @@ -13,9 +13,9 @@ import meteordevelopment.meteorclient.systems.modules.Categories; import meteordevelopment.meteorclient.systems.modules.Module; import meteordevelopment.orbit.EventHandler; -import net.minecraft.core.particles.ParticleOptions; import net.minecraft.core.particles.ParticleType; import net.minecraft.core.particles.ParticleTypes; +import net.minecraft.core.particles.SimpleParticleType; import java.util.List; @@ -48,7 +48,9 @@ private void onTick(TickEvent.Post event) { && mc.player.getZ() == mc.player.zo) return; for (ParticleType particleType : particles.get()) { - mc.level.addParticle((ParticleOptions) particleType, mc.player.getX(), mc.player.getY(), mc.player.getZ(), 0, 0, 0); + if (particleType instanceof SimpleParticleType simpleParticleType) { + mc.level.addParticle(simpleParticleType, mc.player.getX(), mc.player.getY(), mc.player.getZ(), 0, 0, 0); + } } } }