From d8e86d0fc714a50980b0147b099f97762e9fa750 Mon Sep 17 00:00:00 2001 From: Bestle Date: Fri, 18 Oct 2013 12:59:21 +0100 Subject: [PATCH] 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 --- .../java/com/gmail/nossr50/util/skills/ParticleEffectUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/util/skills/ParticleEffectUtils.java b/src/main/java/com/gmail/nossr50/util/skills/ParticleEffectUtils.java index 9cd3fe8cd..b2140ced7 100644 --- a/src/main/java/com/gmail/nossr50/util/skills/ParticleEffectUtils.java +++ b/src/main/java/com/gmail/nossr50/util/skills/ParticleEffectUtils.java @@ -86,7 +86,7 @@ public final class ParticleEffectUtils { private static void fireworkParticleShower(Player player, Color color) { 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); Firework firework = (Firework) player.getWorld().spawnEntity(location, EntityType.FIREWORK);