Fix rules popup (#8485)
* CVar to show rules popup for localhost.
For testing purposes.
* Fix rules popup being broken and throwing.
😐
This commit is contained in:
committed by
GitHub
parent
38368d1341
commit
4c1b0b87fb
@@ -19,9 +19,6 @@ public sealed partial class RulesControl : BoxContainer
|
||||
RobustXamlLoader.Load(this);
|
||||
IoCManager.InjectDependencies(this);
|
||||
|
||||
var path = "Server Info/" + _cfgManager.GetCVar(CCVars.RulesFile);
|
||||
|
||||
AddChild(new InfoSection(Loc.GetString("ui-rules-header"),
|
||||
_resourceManager.ContentFileReadAllText(path), true));
|
||||
AddChild(RulesAndInfoWindow.MakeRules(_cfgManager, _resourceManager));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user