use of net.minecraft.client.resources.LanguageManager in project ModernUI by BloCamLimb.
the class SettingLanguage method applyLanguage.
private void applyLanguage() {
LanguageManager manager = minecraft.getLanguageManager();
GameSettings gameSettings = minecraft.gameSettings;
if (highlight != null && !highlight.getLanguage().getCode().equals(manager.getCurrentLanguage().getCode())) {
manager.setCurrentLanguage(highlight.getLanguage());
gameSettings.language = highlight.getLanguage().getCode();
ForgeHooksClient.refreshResources(minecraft, VanillaResourceType.LANGUAGES);
// FIXME
// minecraft.fontRenderer.getBidiFlag(manager.isCurrentLanguageBidirectional());
gameSettings.saveOptions();
}
}
Aggregations