diff --git a/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Listener/BackpackEventListener.java b/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Listener/BackpackEventListener.java index 26cbe7a..e9f0f45 100644 --- a/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Listener/BackpackEventListener.java +++ b/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Listener/BackpackEventListener.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020 GeorgH93 + * Copyright (C) 2021 GeorgH93 * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -67,7 +67,7 @@ public void onClose(InventoryCloseEvent event) } if(closeSound != null) { - closer.getWorld().playSound(closer.getLocation(), closeSound, 1, 0); + closer.playSound(closer.getLocation(), closeSound, 1, 0); } } } diff --git a/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Minepacks.java b/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Minepacks.java index 8f7e2b3..6ec37d0 100644 --- a/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Minepacks.java +++ b/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Minepacks.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020 GeorgH93 + * Copyright (C) 2021 GeorgH93 * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -327,7 +327,7 @@ public void openBackpack(@NotNull Player opener, @Nullable Backpack backpack, bo if(opener.getOpenInventory().getTopInventory().getHolder() == backpack) return; // == is fine as there is only one instance of each backpack if(openSound != null) { - opener.getWorld().playSound(opener.getLocation(), openSound, 1, 0); + opener.playSound(opener.getLocation(), openSound, 1, 0); } backpack.open(opener, editable); } diff --git a/pom.xml b/pom.xml index 6359cb8..80fe7bd 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ pom - 2.3.21.2 + 2.3.21.3 UTF-8 UTF-8