1
0
mirror of https://github.com/HybridDog/connected_chests.git synced 2024-12-28 06:00:17 +01:00

Old code removal

Logging the loading time is not needed since Minetest writes it to the info log now.
This commit is contained in:
HybridDog 2023-07-15 12:45:20 +02:00
parent c12542270b
commit e575714eba

View File

@ -1,6 +1,3 @@
local load_time_start = minetest.get_us_time()
-- param_tab maps the x and z offset to a param2 value -- param_tab maps the x and z offset to a param2 value
local param_tab = { local param_tab = {
["-1 0"] = 0, ["-1 0"] = 0,
@ -638,17 +635,3 @@ minetest.register_alias("connected_chests:chest_left_locked", "default:chest_loc
minetest.register_alias("connected_chests:chest_right_locked", "default:chest_locked_connected_right") minetest.register_alias("connected_chests:chest_right_locked", "default:chest_locked_connected_right")
minetest.register_alias("connected_chests:chest_locked_left", "default:chest_locked_connected_left") minetest.register_alias("connected_chests:chest_locked_left", "default:chest_locked_connected_left")
minetest.register_alias("connected_chests:chest_locked_right", "default:chest_locked_connected_right") minetest.register_alias("connected_chests:chest_locked_right", "default:chest_locked_connected_right")
--~ local function log_access(pos, player, text)
--~ minetest.log("action", player:get_player_name()..
--~ " moves stuff "..text.." at "..minetest.pos_to_string(pos))
--~ end
local time = (minetest.get_us_time() - load_time_start) / 1000000
local msg = "[connected_chests] loaded after ca. " .. time .. " seconds."
if time > 0.01 then
print(msg)
else
minetest.log("info", msg)
end