1
0
mirror of https://github.com/Sokomine/cottages.git synced 2026-01-11 03:26:23 +01:00

Adds mod load time for logging

This commit is contained in:
AliasAlreadyTaken
2025-12-20 11:52:05 +01:00
parent 8643b498b2
commit 30b394bb12

View File

@@ -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]')