From 741f629ab8b0bf04eb60c2f946ce8f60ced02b0a Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Mon, 14 Oct 2013 17:07:15 +0200 Subject: [PATCH] Don't spawn fireworks under a boat (for real this time) Fixes #1534 --- .../com/gmail/nossr50/util/skills/ParticleEffectUtils.java | 5 ++++- 1 file changed, 4 insertions(+), 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 595de7973..b07d03880 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,10 @@ public final class ParticleEffectUtils { private static void fireworkParticleShower(Player player, Color color) { Location location = player.getLocation(); - if (!player.isInsideVehicle()) { + if (player.isInsideVehicle()) { + location.setY(location.getY() + 1.0); + } + else { location.setY(location.getY() - 1.0); }