File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
managed/src/SwiftlyS2.Core Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public EngineService( CommandTrackerManager commandTrackedManager )
2222
2323 public ref CGlobalVars GlobalVars => ref NativeEngineHelpers . GetGlobalVars ( ) . AsRef < CGlobalVars > ( ) ;
2424
25- public string Map => GlobalVars . MapName . ToString ( ) ?? string . Empty ;
25+ public string Map => GlobalVars . MapName . Value ;
2626
2727 public int MaxPlayers => GlobalVars . MaxClients ;
2828
Original file line number Diff line number Diff line change @@ -68,8 +68,8 @@ SwiftlyS2 is licensed under the GNU General Public License v3.0 or later.
6868 var outStrings = $ "Uptime: { uptime . Days } d { uptime . Hours } h { uptime . Minutes } m { uptime . Seconds } s";
6969 outStrings += $ "\n Managed Heap Memory: { GC . GetTotalMemory ( false ) / 1024.0f / 1024.0f : 0.00} MB";
7070 outStrings += $ "\n Loaded Plugins: { _PluginManager . GetPlugins ( ) . Count ( ) } ";
71- outStrings += $ "\n Players: { _Core . PlayerManager . PlayerCount } /{ _Core . Engine . MaxPlayers } ";
72- outStrings += $ "\n Map: { _Core . Engine . Map } ";
71+ outStrings += $ "\n Players: { _Core . PlayerManager . PlayerCount } /{ _Core . Engine . GlobalVars . MaxClients } ";
72+ outStrings += $ "\n Map: { _Core . Engine . GlobalVars . MapName . Value } ";
7373 _Logger . LogInformation ( outStrings ) ;
7474 break ;
7575 case "version" :
You can’t perform that action at this time.
0 commit comments