mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix commands boolean type support
This commit is contained in:
parent
8e00e73b8e
commit
a50cb109c8
1 changed files with 1 additions and 1 deletions
|
|
@ -252,7 +252,7 @@ public:
|
|||
case ArgType::integer:
|
||||
return typeCheck(arg, dv::value_type::integer, value, "integer");
|
||||
case ArgType::boolean:
|
||||
if (!arg->optional) {
|
||||
if (!arg->optional && !value.isBoolean()) {
|
||||
throw typeError(arg->name, "boolean", value);
|
||||
}
|
||||
return value.isBoolean();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue