Lua fix truthiness test
parent
17ec0e41d1
commit
71a414d1d4
|
@ -703,7 +703,7 @@ export function luaTruthy(value: any): boolean {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (value instanceof LuaTable) {
|
if (value instanceof LuaTable) {
|
||||||
return value.empty();
|
return !value.empty();
|
||||||
}
|
}
|
||||||
if (value instanceof LuaMultiRes) {
|
if (value instanceof LuaMultiRes) {
|
||||||
return value.values.length > 0;
|
return value.values.length > 0;
|
||||||
|
|
Loading…
Reference in New Issue