Add minetest.global_exists()

This commit is contained in:
ShadowNinja 2014-11-21 11:32:01 -05:00 committed by Nils Dagsson Moskopp
parent c2dcb45bf8
commit 6e61c7d92a
Signed by: erlehmann
GPG Key ID: A3BC671C35191080
1 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,11 @@
local WARN_INIT = false
function core.global_exists(name)
return rawget(_G, name) ~= nil
end
local function warn(message)
print(os.date("%H:%M:%S: WARNING: ")..message)
end