From e7645111ca3c9b1de755565aefb216e818713fa6 Mon Sep 17 00:00:00 2001 From: N-Nachtigal Date: Sat, 17 May 2025 00:35:25 +0200 Subject: [PATCH] =?UTF-8?q?print=20f=C3=BCr=20Beleuchtung=20entfernt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mods/cozylights/init.lua | 2 +- mods/cozylights/wield_light.lua | 2 +- wield cozy | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 wield cozy diff --git a/mods/cozylights/init.lua b/mods/cozylights/init.lua index 816a7dd5..fe6c0a42 100644 --- a/mods/cozylights/init.lua +++ b/mods/cozylights/init.lua @@ -542,7 +542,7 @@ minetest.register_globalstep(function(dtime) local exe_time = (os.clock() - t) total_wield_time = total_wield_time + mf(exe_time * 1000) total_wield_step_count = total_wield_step_count + 1 - print("Av wielded cozy light step time " .. mf(total_wield_time/total_wield_step_count) .. " ms. Sample of: "..total_wield_step_count) + --print("Av wielded cozy light step time " .. mf(total_wield_time/total_wield_step_count) .. " ms. Sample of: "..total_wield_step_count) if cozylights.crispy_potato and exe_time > wield_step then cozylights:set_wielded_light_radius(cozylights.max_wield_light_radius - 1) minetest.chat_send_all("wield light step was adjusted to "..(exe_time*2).." secs to help crispy potato.") diff --git a/mods/cozylights/wield_light.lua b/mods/cozylights/wield_light.lua index ba7d764a..a962765b 100644 --- a/mods/cozylights/wield_light.lua +++ b/mods/cozylights/wield_light.lua @@ -257,6 +257,6 @@ function cozylights:draw_wielded_light(pos, last_pos, cozy_item,vel,cozyplayer,v cozyplayer.last_wield_radius = radius gent_total = gent_total + mf((os.clock() - t) * 1000) gent_count = gent_count + 1 - print("Av wield illum time " .. mf(gent_total/gent_count) .. " ms. Sample of: "..gent_count) + --print("Av wield illum time " .. mf(gent_total/gent_count) .. " ms. Sample of: "..gent_count) end diff --git a/wield cozy b/wield cozy new file mode 100644 index 00000000..ad44e919 --- /dev/null +++ b/wield cozy @@ -0,0 +1 @@ +heat_point = 47, humidity_point = 66, \ No newline at end of file