print für Beleuchtung entfernt

This commit is contained in:
N-Nachtigal 2025-05-17 00:35:25 +02:00
parent b11e64dc91
commit e7645111ca
3 changed files with 3 additions and 2 deletions

View file

@ -542,7 +542,7 @@ minetest.register_globalstep(function(dtime)
local exe_time = (os.clock() - t) local exe_time = (os.clock() - t)
total_wield_time = total_wield_time + mf(exe_time * 1000) total_wield_time = total_wield_time + mf(exe_time * 1000)
total_wield_step_count = total_wield_step_count + 1 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 if cozylights.crispy_potato and exe_time > wield_step then
cozylights:set_wielded_light_radius(cozylights.max_wield_light_radius - 1) 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.") minetest.chat_send_all("wield light step was adjusted to "..(exe_time*2).." secs to help crispy potato.")

View file

@ -257,6 +257,6 @@ function cozylights:draw_wielded_light(pos, last_pos, cozy_item,vel,cozyplayer,v
cozyplayer.last_wield_radius = radius cozyplayer.last_wield_radius = radius
gent_total = gent_total + mf((os.clock() - t) * 1000) gent_total = gent_total + mf((os.clock() - t) * 1000)
gent_count = gent_count + 1 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 end

1
wield cozy Normal file
View file

@ -0,0 +1 @@
heat_point = 47, humidity_point = 66,