mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
help to non-existing command + audio fix
This commit is contained in:
parent
56ab8c5c84
commit
2809cc9b86
2 changed files with 9 additions and 5 deletions
|
|
@ -66,6 +66,9 @@ static int l_get_command_info(lua_State* L) {
|
|||
auto interpreter = engine->getCommandsInterpreter();
|
||||
auto repo = interpreter->getRepository();
|
||||
auto command = repo->get(name);
|
||||
if (command == nullptr) {
|
||||
return 0;
|
||||
}
|
||||
const auto& args = command->getArgs();
|
||||
const auto& kwargs = command->getKwArgs();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue