Lua fix truthiness test

pull/1224/head
Zef Hemel 2025-01-26 08:59:44 +01:00
parent 17ec0e41d1
commit 71a414d1d4
1 changed files with 1 additions and 1 deletions

View File

@ -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;