From 2ddf5c81a4b1b793372653781a6d06435c08def6 Mon Sep 17 00:00:00 2001 From: HybridDog Date: Wed, 5 Aug 2015 10:35:32 +0200 Subject: [PATCH] :cat2: --- nether/init.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/nether/init.lua b/nether/init.lua index 9a158bb..bf93463 100644 --- a/nether/init.lua +++ b/nether/init.lua @@ -11,6 +11,8 @@ -- godkiller447 (ideas) -- If I didn't list you, please let me know! +local load_time_start = os.clock() + if not rawget(_G, "nether") then nether = {} end @@ -1028,4 +1030,11 @@ dofile(path.."/crafting.lua") dofile(path.."/portal.lua") dofile(path.."/guide.lua") -nether:inform("loaded!", 1) + +local time = math.floor(tonumber(os.clock()-load_time_start)*100+0.5)/100 +local msg = "[nether] loaded after ca. "..time +if time > 0.05 then + print(msg) +else + minetest.log("info", msg) +end