mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-02-26 01:23:48 +01:00
Add mcl_util.to_bool
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user