Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-20 06:50:09 +01:00
Drop any namespace for incoming sounds
Fixes custom sounds defined through a resource pack.
Dieser Commit ist enthalten in:
Ursprung
246ebddc78
Commit
23cdde5cc6
@ -78,9 +78,9 @@ public final class SoundUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static String trim(String identifier) {
|
private static String trim(String identifier) {
|
||||||
// Drop the Minecraft namespace if applicable
|
// Drop any namespace if applicable
|
||||||
if (identifier.startsWith("minecraft:")) {
|
if (identifier.contains(":") {
|
||||||
return identifier.substring("minecraft:".length());
|
return identifier.split(":")[1];
|
||||||
}
|
}
|
||||||
return identifier;
|
return identifier;
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren