Fix bug with celebration style in fixed effects after player logs off

This commit is contained in:
Esophose 2020-02-13 06:03:32 -07:00
parent 13686f72e2
commit 1c834c7bb6
8 changed files with 15 additions and 11 deletions

View file

@ -66,7 +66,7 @@ public class ParticleStyleBlockBreak extends DefaultParticleStyle implements Lis
if (pplayer != null) {
for (ParticlePair particle : pplayer.getActiveParticlesForStyle(DefaultStyles.BLOCKBREAK)) {
Location loc = event.getBlock().getLocation().clone();
particleManager.displayParticles(player, particle, DefaultStyles.BLOCKBREAK.getParticles(particle, loc));
particleManager.displayParticles(player, player.getWorld(), particle, DefaultStyles.BLOCKBREAK.getParticles(particle, loc));
}
}
}