Made particles rotate based on initial player rotation if they aren't relative to the player, and current player rotation if they are

This commit is contained in:
2022-04-28 03:37:52 +02:00
parent 426be723b1
commit 7cc66db3ce
4 changed files with 52 additions and 10 deletions
@@ -39,7 +39,7 @@ public class ParticleSet {
public void run(Location location, Player player) {
if (tooSoon(player.getUniqueId()) || isVanished(player))
return;
FrameSpawnerLocation frameSpawnerLocation = new FrameSpawnerLocation(repeat, repeatDelay, frames, location);
FrameSpawnerLocation frameSpawnerLocation = new FrameSpawnerLocation(repeat, repeatDelay, frames, location, player.getLocation().getYaw());
frameSpawnerLocation.runTaskTimerAsynchronously(AltitudeParticles.getInstance(), 0, frameDelay);
}