Replace loadbp usages with loadmap (#6085)
This commit is contained in:
@@ -68,15 +68,15 @@ namespace Content.Server.GameTicking.Commands
|
||||
return;
|
||||
}
|
||||
|
||||
// loadmap checks for this on its own but we want to avoid running our other commands.
|
||||
if (mapManager.MapExists(new MapId(mapId)))
|
||||
{
|
||||
shell.WriteLine($"Map {mapId} already exists");
|
||||
shell.WriteError($"Map {mapId} already exists");
|
||||
return;
|
||||
}
|
||||
|
||||
shell.ExecuteCommand("sudo cvar events.enabled false");
|
||||
shell.ExecuteCommand($"addmap {mapId} false");
|
||||
shell.ExecuteCommand($"loadbp {mapId} \"{CommandParsing.Escape(mapName)}\" true");
|
||||
shell.ExecuteCommand($"loadmap {mapId} \"{CommandParsing.Escape(mapName)}\" true");
|
||||
|
||||
if (player.AttachedEntity is {Valid: true} playerEntity &&
|
||||
_entities.GetComponent<MetaDataComponent>(playerEntity).EntityPrototype?.ID != "AdminObserver")
|
||||
|
||||
Reference in New Issue
Block a user