Skip to content

Commit

Permalink
Fixed IllegalArgumentException on particles that are not on the serve…
Browse files Browse the repository at this point in the history
…r available
  • Loading branch information
Tigerpanzer02 committed Nov 29, 2023
1 parent e3f4c82 commit aa1a745
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ public void run() {
plugin.getDebugger().debug("Stopped spawning particle with perm {0} for player {1}", trail.getPermission(), player.getName());
cancel();
}
VersionUtils.sendParticles(trail.getName(), player, projectile.getLocation(), 3);
try {
VersionUtils.sendParticles(trail.getName(), player, projectile.getLocation(), 3);
}catch(Exception ignored) {}
}
}.runTaskTimer(plugin, 0, 0);
}
Expand Down

0 comments on commit aa1a745

Please sign in to comment.