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