Removed the last bits of dependencies on localization manager (#2127)

* Removed the last bits of dependencies on localization manager

* Updated submodules to resolve error

Co-authored-by: David Tan <>
This commit is contained in:
DTanxxx
2020-09-27 01:30:13 +12:00
committed by GitHub
parent 4b9d488c1e
commit 3e6f0eef58
3 changed files with 4 additions and 7 deletions

View File

@@ -18,7 +18,6 @@
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
[Dependency] private readonly ITileDefinitionManager _tileDefinitionManager = default!;
[Dependency] private readonly ILocalizationManager _localizationManager = default!;
public override void PreInit()
{
@@ -28,7 +27,7 @@
textMacroFactory.DoAutoRegistrations();
// Default to en-US.
_localizationManager.LoadCulture(new CultureInfo(Culture));
Loc.LoadCulture(new CultureInfo(Culture));
}
public override void Init()