Remove mod load time logging code

Minetest shows the loading time if it is executed with --info, so I don't like the logging code anymore.
This commit is contained in:
HybridDog 2024-08-31 11:29:35 +02:00
parent 2f334b0729
commit 0aeb3947e2

View File

@ -1,6 +1,3 @@
local load_time_start = minetest.get_us_time()
local player_items = {}
local function find_item(name, pname)
if minetest.registered_items[name] then
@ -113,12 +110,3 @@ function minetest.chatcommands.giveme.func(name, param)
end
return oldfunc(name, items..rest)
end
local time = (minetest.get_us_time() - load_time_start) / 1000000
local msg = "[giveme_completion] loaded after ca. " .. time .. " seconds."
if time > 0.01 then
print(msg)
else
minetest.log("info", msg)
end