mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-26 14:30:17 +01:00
21 lines
858 B
Diff
21 lines
858 B
Diff
From 0000000000000000000000000000000000000000 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
|
|
|
|
|
|
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
|
|
}
|