mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-18 00:47:42 +01:00
Upstream has released updates that appear to apply and compile correctly Paper Changes: fb36f15d6 Let some more packets be send immediately, closes #4140 (#4896) ede41fe16 Emancipate more features to PlayerHandshakeEvent 3fdeba1f5 [CI-SKIP] [Auto] Rebuild Patches 5fc07bd63 Maded Title-Objects directy sendable to targets e7b9a478e Player Chunk Load/Unload Events 1d0cfc0cc MC-4 Fix item position desync 458db6206 Limit auto recipe packets
22 lines
922 B
Diff
22 lines
922 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: BillyGalbreath <blake.galbreath@gmail.com>
|
|
Date: Thu, 10 Dec 2020 21:41:24 -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 a7137123f698929263d342d5f8da1b34be3c9d5e..c45fd46c11c1b544daa07da9bba4179050bf6785 100644
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftSound.java
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftSound.java
|
|
@@ -27,4 +27,10 @@ public class CraftSound {
|
|
public static Sound getBukkit(SoundEffect soundEffect) {
|
|
return Registry.SOUNDS.get(CraftNamespacedKey.fromMinecraft(IRegistry.SOUND_EVENT.getKey(soundEffect)));
|
|
}
|
|
+
|
|
+ // Purpur start
|
|
+ public static String getSound(Sound sound) {
|
|
+ return sound.getKey().getKey();
|
|
+ }
|
|
+ // Purpur end
|
|
}
|