diff --git a/worldeditadditions/utils/strings/to_boolean.lua b/worldeditadditions/utils/strings/to_boolean.lua index b1fe2d3..a128226 100644 --- a/worldeditadditions/utils/strings/to_boolean.lua +++ b/worldeditadditions/utils/strings/to_boolean.lua @@ -4,7 +4,7 @@ local function to_boolean(arg) local typ = type(arg) if typ == "boolean" then return arg - elseif typ == number and arg > 0 then return true + elseif typ == "number" and arg > 0 then return true elseif arg == "false" or arg == "no" then return false elseif typ ~= "nil" then return true else return false end