Tidy up startup reports
This commit is contained in:
parent
085f700982
commit
8b96b96a29
@ -58,7 +58,14 @@ function nodecore.log(level, ...)
|
|||||||
return minetest.log(level, ...)
|
return minetest.log(level, ...)
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.after(0, function()
|
nodecore.log("info", nodecore.product .. (nodecore.version and (" Version " .. nodecore.version)
|
||||||
|
or " DEVELOPMENT VERSION"))
|
||||||
|
|
||||||
|
do
|
||||||
|
local ticked = 0
|
||||||
|
local function regreport()
|
||||||
|
ticked = ticked + 1
|
||||||
|
if ticked < 5 then return minetest.after(0, regreport) end
|
||||||
local reg = "registered_"
|
local reg = "registered_"
|
||||||
local t = {}
|
local t = {}
|
||||||
for k, v in pairs(nodecore) do
|
for k, v in pairs(nodecore) do
|
||||||
@ -67,8 +74,10 @@ minetest.after(0, function()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
table_sort(t)
|
table_sort(t)
|
||||||
for _, x in pairs(t) do nodecore.log("warning", x) end
|
for _, x in pairs(t) do nodecore.log("info", x) end
|
||||||
end)
|
end
|
||||||
|
minetest.after(0, regreport)
|
||||||
|
end
|
||||||
|
|
||||||
include("compat_vector")
|
include("compat_vector")
|
||||||
include("issue9043")
|
include("issue9043")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user