Skip to content

Commit

Permalink
- fixed flight sound with infinite firework
Browse files Browse the repository at this point in the history
  • Loading branch information
Grzybol committed Mar 17, 2024
1 parent 265027a commit 02f0421
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>betterbox.mine.game</groupId>
<artifactId>BetterElo</artifactId>
<version>3.2.45-SNAPSHOT</version>
<version>3.2.46-SNAPSHOT</version>
<packaging>jar</packaging>

<name>BetterElo</name>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/betterbox/mine/game/betterelo/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 02f0421

Please sign in to comment.