mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Drop any namespace for incoming sounds
Fixes custom sounds defined through a resource pack.
This commit is contained in:
parent
246ebddc78
commit
23cdde5cc6
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue