Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-20 06:50:09 +01:00
Leniency when trimming incoming sound ids (#3852)
Dieser Commit ist enthalten in:
Ursprung
1d99f8beb8
Commit
049d64d34d
@ -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;
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren