mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
Add mcl_util.to_bool
This commit is contained in:
parent
21a88be2b2
commit
87a48270f5
1 changed files with 5 additions and 0 deletions
|
@ -1103,3 +1103,8 @@ function mcl_util.is_it_christmas()
|
|||
return false
|
||||
end
|
||||
end
|
||||
|
||||
function mcl_util.to_bool(val)
|
||||
if not val then return false end
|
||||
return true
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue