From 54268431b58e3e112d915bb1266dfbf7d0aa54d1 Mon Sep 17 00:00:00 2001 From: VorTechnix <45538536+VorTechnix@users.noreply.github.com> Date: Sun, 7 Nov 2021 07:36:43 -0800 Subject: [PATCH] added missing quotation marks --- worldeditadditions/utils/strings/to_boolean.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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