3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-28 09:00:09 +01:00

Fix namespaced 1.12->1.13 sound conversion

Dieser Commit ist enthalten in:
KennyTV 2021-04-09 14:56:44 +02:00
Ursprung b23c01c44b
Commit 3c7d481a39
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B

Datei anzeigen

@ -335,7 +335,8 @@ public class WorldPackets {
handler(new PacketHandler() { handler(new PacketHandler() {
@Override @Override
public void handle(PacketWrapper wrapper) throws Exception { public void handle(PacketWrapper wrapper) throws Exception {
String newSoundId = NamedSoundRewriter.getNewId(wrapper.get(Type.STRING, 0)); String sound = wrapper.get(Type.STRING, 0).replace("minecraft:", "");
String newSoundId = NamedSoundRewriter.getNewId(sound);
wrapper.set(Type.STRING, 0, newSoundId); wrapper.set(Type.STRING, 0, newSoundId);
} }
}); });