Add privileged desynced client global variables (#9138)

* Fix text setting in marker control

* Fix marker and bridge calculation game crashes, minor marker instruction code fixes

* Add privileged desynced client constant global variables

* Remove broken attempt to not initialize client vars on server

* Make @clientLocale variable non-constant, make @server and @client privileged
This commit is contained in:
ApsZoldat
2023-10-05 17:56:53 +03:00
committed by GitHub
parent 16488aeae4
commit 91d87e1dba
4 changed files with 35 additions and 9 deletions

View File

@@ -78,6 +78,7 @@ public class LanguageDialog extends BaseDialog{
if(getLocale().equals(loc)) return;
Core.settings.put("locale", loc.toString());
Log.info("Setting locale: @", loc.toString());
player.locale = loc.toString();
ui.showInfo("@language.restart");
});
langs.add(button).group(group).update(t -> t.setChecked(loc.equals(getLocale()))).size(400f, 50f).row();