Skip to content

Commit 4141ff1

Browse files
Fix obsolete IsMapInitialized call in SaveMap command
1 parent f35984c commit 4141ff1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Robust.Server/Console/Commands/MapCommands.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ public override void Execute(IConsoleShell shell, string argStr, string[] args)
195195
return;
196196
}
197197

198-
if (_map.IsMapInitialized(mapId) &&
198+
var _mapSystem = _system.GetEntitySystem<SharedMapSystem>();
199+
if (_mapSystem.IsInitialized(mapId) &&
199200
( args.Length < 3 || !bool.TryParse(args[2], out var force) || !force))
200201
{
201202
shell.WriteError(Loc.GetString("cmd-savemap-init-warning"));

0 commit comments

Comments
 (0)