mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-27 17:43:53 +01:00
added missing quotation marks
This commit is contained in:
parent
0352595e41
commit
54268431b5
@ -4,7 +4,7 @@
|
|||||||
local function to_boolean(arg)
|
local function to_boolean(arg)
|
||||||
local typ = type(arg)
|
local typ = type(arg)
|
||||||
if typ == "boolean" then return 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 arg == "false" or arg == "no" then return false
|
||||||
elseif typ ~= "nil" then return true
|
elseif typ ~= "nil" then return true
|
||||||
else return false end
|
else return false end
|
||||||
|
Loading…
Reference in New Issue
Block a user