Drehung der Kristalle gefixt

This commit is contained in:
N-Nachtigal 2025-05-21 00:34:29 +02:00
parent dfcf870d1b
commit df1276fb86
3 changed files with 49 additions and 34 deletions

View file

@ -345,9 +345,9 @@ local function build_lights_after_generated(minp,maxp,sources)
cozylights:setVoxelManipData(vm,data,param2data,true)
agent_total = agent_total + mf((os.clock() - t) * 1000)
agent_count = agent_count + 1
print("Av build after generated time: "..
mf(agent_total/agent_count).." ms. Sample of: "..agent_count..". Areas left: "..#cozylights.area_queue
)
--print("Av build after generated time: "..
-- mf(agent_total/agent_count).." ms. Sample of: "..agent_count..". Areas left: "..#cozylights.area_queue
--)
end
--idk, size should be smarter than a constant
@ -627,7 +627,7 @@ minetest.register_on_generated(function(minp, maxp)
local light_sources = minetest.find_nodes_in_area(minp,maxp,cozylights.source_nodes)
if #light_sources == 0 then return end
if #light_sources > 1000 then
print("Error: too many light sources around "..cozylights:dump(pos).." Report this to Cozy Lights dev")
--print("Error: too many light sources around "..cozylights:dump(pos).." Report this to Cozy Lights dev")
return
end
--local minp_exp,maxp_exp,_,data,_,a = cozylights:getVoxelManipData(pos, size)