Skip to content

Commit

Permalink
Fixed trail pause when stationary
Browse files Browse the repository at this point in the history
  • Loading branch information
thebest9178 authored and Wide-Cat committed Aug 9, 2023
1 parent 2507af6 commit 6b430c0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ public Trail() {
@EventHandler
private void onTick(TickEvent.Post event) {
if (pause.get()
&& mc.player.getVelocity().x == 0
&& mc.player.getVelocity().y == 0
&& mc.player.getVelocity().z == 0) return;
&& mc.player.getX() == mc.player.prevX
&& mc.player.getY() == mc.player.prevY
&& mc.player.getZ() == mc.player.prevZ) return;

for (ParticleType<?> particleType : particles.get()) {
mc.world.addParticle((ParticleEffect) particleType, mc.player.getX(), mc.player.getY(), mc.player.getZ(), 0, 0, 0);
Expand Down

0 comments on commit 6b430c0

Please sign in to comment.