mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 21:31:25 +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() {
|
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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user