diff options
Diffstat (limited to 'patches/unapplied/server/0437-Fix-CraftSound-backwards-compatibility.patch')
-rw-r--r-- | patches/unapplied/server/0437-Fix-CraftSound-backwards-compatibility.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/patches/unapplied/server/0437-Fix-CraftSound-backwards-compatibility.patch b/patches/unapplied/server/0437-Fix-CraftSound-backwards-compatibility.patch new file mode 100644 index 0000000000..604e24920d --- /dev/null +++ b/patches/unapplied/server/0437-Fix-CraftSound-backwards-compatibility.patch @@ -0,0 +1,21 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: BillyGalbreath <[email protected]> +Date: Thu, 17 Dec 2020 15:25:49 -0600 +Subject: [PATCH] Fix CraftSound backwards compatibility + + +diff --git a/src/main/java/org/bukkit/craftbukkit/CraftSound.java b/src/main/java/org/bukkit/craftbukkit/CraftSound.java +index e53d6d33bfe9ed14fce0f5df0ab7648f18489c39..5b6e6902db19b078bb8598014a87c06f1267acc4 100644 +--- a/src/main/java/org/bukkit/craftbukkit/CraftSound.java ++++ b/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 + } |