mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-13 11:04:42 +02:00
Fix logic error in fireworkParticleShower
If a player is inside a vehicle, the y position of the spawned firework should be modified, not the x
This commit is contained in:
@ -86,7 +86,7 @@ public final class ParticleEffectUtils {
|
|||||||
|
|
||||||
private static void fireworkParticleShower(Player player, Color color) {
|
private static void fireworkParticleShower(Player player, Color color) {
|
||||||
Location location = player.getLocation();
|
Location location = player.getLocation();
|
||||||
location.setX(location.getY() + (player.isInsideVehicle() ? 1.0 : -1.0));
|
location.setY(location.getY() + (player.isInsideVehicle() ? 1.0 : -1.0));
|
||||||
location.setPitch(-90);
|
location.setPitch(-90);
|
||||||
|
|
||||||
Firework firework = (Firework) player.getWorld().spawnEntity(location, EntityType.FIREWORK);
|
Firework firework = (Firework) player.getWorld().spawnEntity(location, EntityType.FIREWORK);
|
||||||
|
Reference in New Issue
Block a user