From b22a956d7c878c59a44d4b9292a25412f865e579 Mon Sep 17 00:00:00 2001 From: BillyGalbreath <blake.galbreath@gmail.com> Date: Thu, 17 Dec 2020 15:25:49 -0600 Subject: [PATCH] Fix CraftSound backwards compatibility --- .../src/main/java/org/bukkit/craftbukkit/CraftSound.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftSound.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftSound.java index e53d6d33bf..5b6e6902db 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftSound.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftSound.java @@ -106,4 +106,10 @@ public class CraftSound implements Sound, Handleable<SoundEvent> { public int hashCode() { return this.getKey().hashCode(); } + + // Paper start + public static String getSound(Sound sound) { + return sound.getKey().getKey(); + } + // Paper end }