Fix CraftSound backwards compatibility
This commit is contained in:
@@ -106,4 +106,10 @@ public class CraftSound implements Sound, Handleable<SoundEvent> {
|
|||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return this.getKey().hashCode();
|
return this.getKey().hashCode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Paper start
|
||||||
|
public static String getSound(Sound sound) {
|
||||||
|
return sound.getKey().getKey();
|
||||||
|
}
|
||||||
|
// Paper end
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user