mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-08-21 14:04:06 +02:00
added missing quotation marks
This commit is contained in:
parent
0352595e41
commit
54268431b5
@ -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 New Issue
Block a user