mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-25 16:43:05 +00:00
added missing quotation marks
This commit is contained in:
parent
0352595e41
commit
54268431b5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue