浏览代码

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
Bestle 11 年之前
父节点
当前提交
d8e86d0fc7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/gmail/nossr50/util/skills/ParticleEffectUtils.java

+ 1 - 1
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);