Fix forcemap not bypassing requirements (#29426)

* Fix forcemap not bypassing requirements

* Add integration test for forcemap
This commit is contained in:
Tayrtahn
2024-06-24 18:29:44 -04:00
committed by GitHub
parent 0822284cba
commit 8aea47a7ee
3 changed files with 83 additions and 2 deletions

View File

@@ -29,9 +29,9 @@ namespace Content.Server.GameTicking.Commands
var gameMap = IoCManager.Resolve<IGameMapManager>();
var name = args[0];
if (!gameMap.TrySelectMapIfEligible(name))
if (!gameMap.CheckMapExists(name))
{
shell.WriteLine($"No eligible map exists with name {name}.");
shell.WriteLine(Loc.GetString("forcemap-command-map-not-found", ("map", name)));
return;
}