3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-10-03 08:21:06 +02:00

Drop any namespace for incoming sounds

Fixes custom sounds defined through a resource pack.
Dieser Commit ist enthalten in:
Redned 2023-06-04 22:40:09 -05:00 committet von GitHub
Ursprung 246ebddc78
Commit 23cdde5cc6
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -78,9 +78,9 @@ public final class SoundUtils {
}
private static String trim(String identifier) {
// Drop the Minecraft namespace if applicable
if (identifier.startsWith("minecraft:")) {
return identifier.substring("minecraft:".length());
// Drop any namespace if applicable
if (identifier.contains(":") {
return identifier.split(":")[1];
}
return identifier;
}