From 6a444dfb6be0dff9ea02b319ca67ae1a2f961a4c Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Sat, 17 Sep 2022 19:43:36 +0200 Subject: [PATCH] Remove mostly useless logging --- main.lua | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/main.lua b/main.lua index 482ae84..1d3db72 100644 --- a/main.lua +++ b/main.lua @@ -1,13 +1,5 @@ ---- ---- Generated by EmmyLua(https://github.com/EmmyLua) ---- Created by lars. ---- DateTime: 12.03.19 16:26 ---- - timers = {} -modlib.log.create_channel("hud_timers") -- Create log channel - local config = modlib.conf.import( "hud_timers", @@ -121,13 +113,6 @@ function add_timer(playername, timer_definition) } ) - modlib.log.write( - "hud_timers", - "Timer " .. - timer_definition.name .. - " with duration of " .. timer_definition.duration .. " added to the HUD of player " .. playername - ) - local timer = { name = timer_definition.name or "Unnamed Timer", time_left = timer_definition.duration, @@ -168,13 +153,6 @@ function maintain_timers(timers, dtime, player) player:hud_remove(timer.ids.bg) player:hud_remove(timer.ids.bar) player:hud_remove(timer.ids.label) - modlib.log.write( - "hud_timers", - "Timer " .. - timer.name .. - " with duration of " .. - timer.duration .. " removed from the HUD of player " .. player:get_player_name() - ) table.remove(timers, i) if timer.time_left > 0 then timer.on_complete(player:get_player_name(), timer) @@ -201,4 +179,4 @@ end function update_timers(playername) maintain_timers(timers[playername], 0, minetest.get_player_by_name(playername)) -end \ No newline at end of file +end