mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Leniency when trimming incoming sound ids (#3852)
This commit is contained in:
parent
1d99f8beb8
commit
049d64d34d
1 changed files with 3 additions and 2 deletions
|
@ -79,8 +79,9 @@ public final class SoundUtils {
|
||||||
|
|
||||||
private static String trim(String identifier) {
|
private static String trim(String identifier) {
|
||||||
// Drop any namespace if applicable
|
// Drop any namespace if applicable
|
||||||
if (identifier.contains(":")) {
|
int i = identifier.indexOf(':');
|
||||||
return identifier.split(":")[1];
|
if (i >= 0) {
|
||||||
|
return identifier.substring(i + 1);
|
||||||
}
|
}
|
||||||
return identifier;
|
return identifier;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue