mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
Fix CraftSound backwards compatibility
This commit is contained in:
parent
1f21f3032b
commit
b22a956d7c
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user