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:
parent
2f334b0729
commit
0aeb3947e2
12
init.lua
12
init.lua
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user