Fix getting locale in lower version client by delaying message sending

This commit is contained in:
Dreeam
2024-05-30 01:21:57 +08:00
parent fdc0d31632
commit 4e54d86712
2 changed files with 17 additions and 1 deletions
@@ -40,7 +40,8 @@ public class I18NUtils {
spigotGetLocaleMethod.setAccessible(true);
return ((String) spigotGetLocaleMethod.invoke(spigot)).toLowerCase();
} catch (Exception ignored) {
} catch (Exception e) {
e.printStackTrace();
return null;
}
}