Refactor code in world-core that spawns threads

This commit is contained in:
2024-02-27 17:01:26 -05:00
parent aaedf9e3f0
commit 2b426eefeb
6 changed files with 112 additions and 111 deletions

View File

@@ -54,9 +54,10 @@ void LuaConsole::simplify(const StringVec &words) {
return;
} else if (sv::valid_int64(words[0])) {
if (words.size() == 1) {
eng::string num = words[0];
words_.clear();
words_.push_back("choose");
words_.push_back(words[0]);
words_.push_back(num);
} else {
synerr("/choose command takes no arguments");
}