mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Add minetest.global_exists()
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user