mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-11-25 08:16:24 +01: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) {
|
||||
// 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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue