mirror of
https://github.com/Sokomine/cottages.git
synced 2026-01-12 03:55:48 +01:00
Merge pull request 'Adds mod load time for logging' (#2) from AliasAlreadyTaken/cottages:loadtime into master
Reviewed-on: https://gitea.your-land.de/Sokomine/cottages/pulls/2
This commit is contained in:
6
init.lua
6
init.lua
@@ -22,6 +22,9 @@
|
||||
-- Added threshing floor.
|
||||
-- Added hand-driven mill.
|
||||
|
||||
core.log('action','[MOD] loading cottages')
|
||||
local mod_start_time = minetest.get_us_time()
|
||||
|
||||
cottages = {}
|
||||
|
||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||
@@ -109,3 +112,6 @@ dofile(minetest.get_modpath("cottages").."/alias.lua");
|
||||
|
||||
-- variable no longer needed
|
||||
cottages.S = nil;
|
||||
|
||||
local mod_load_time = (minetest.get_us_time() - mod_start_time) / 1000000
|
||||
core.log('action','[MOD] cottages loaded.. ['.. mod_load_time ..'s]')
|
||||
|
||||
Reference in New Issue
Block a user