From 02f0421606a071ba0f10d7d293289f60ca8777c3 Mon Sep 17 00:00:00 2001 From: Grzybol Date: Sun, 17 Mar 2024 17:37:39 +0100 Subject: [PATCH] - fixed flight sound with infinite firework --- pom.xml | 2 +- src/main/java/betterbox/mine/game/betterelo/Event.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index d33370f..22d1202 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ betterbox.mine.game BetterElo - 3.2.45-SNAPSHOT + 3.2.46-SNAPSHOT jar BetterElo diff --git a/src/main/java/betterbox/mine/game/betterelo/Event.java b/src/main/java/betterbox/mine/game/betterelo/Event.java index af826c0..6ac55f9 100644 --- a/src/main/java/betterbox/mine/game/betterelo/Event.java +++ b/src/main/java/betterbox/mine/game/betterelo/Event.java @@ -528,7 +528,7 @@ public void onPlayerInteract(PlayerInteractEvent event) { } private static void launchFireworkEffect(Player player) { Location location = player.getLocation(); - player.getWorld().playSound(location, Sound.ENTITY_FIREWORK_ROCKET_LAUNCH, 1.0f, 1.0f); + player.getWorld().playSound(location, Sound.ENTITY_FIREWORK_ROCKET_LAUNCH,SoundCategory.AMBIENT, 1.0f, 1.0f); } private static void applyBoosterEffect(Player player,int power) { // Zastosowanie efektu przyspieszenia (booster effect) dla gracza