[MapRotation]: Exec only from this folder (#917)
This commit is contained in:
parent
9b1f49252e
commit
33ebf76a8f
@ -70,7 +70,7 @@ namespace Components
|
|||||||
|
|
||||||
if (!this->containsHandler(key))
|
if (!this->containsHandler(key))
|
||||||
{
|
{
|
||||||
throw MapRotationParseError(std::format("Invalid key {}", key));
|
throw MapRotationParseError(std::format("Invalid key '{}'", key));
|
||||||
}
|
}
|
||||||
|
|
||||||
this->addEntry(key, value);
|
this->addEntry(key, value);
|
||||||
@ -237,7 +237,6 @@ namespace Components
|
|||||||
void MapRotation::ApplyExec(const std::string& name)
|
void MapRotation::ApplyExec(const std::string& name)
|
||||||
{
|
{
|
||||||
assert(!name.empty());
|
assert(!name.empty());
|
||||||
Command::Execute(std::format("exec {}", name), false);
|
|
||||||
Command::Execute(std::format("exec game_settings/{}", name), false);
|
Command::Execute(std::format("exec game_settings/{}", name), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user