My eyes hurt no more while playing MT in caves, thats good!
But newer chuncks are unlit, or completly dark!
Cannot fix this issue with //fixlight /fixlight or /fixmap
The code is very simple, and should work as expected !
Can someone please point out why this is not working.
local level = tonumber(minetest.settings:get("light_level")) or 4
minetest.register_on_mods_loaded(function ()
for i, def in pairs(minetest.registered_nodes) do
local light_source = def.light_source
if light_source == nil or light_source < level then
minetest.override_item(i, { light_source = level })
end
end
end)
My eyes hurt no more while playing MT in caves, thats good!
But newer chuncks are unlit, or completly dark! Cannot fix this issue with //fixlight /fixlight or /fixmap
The code is very simple, and should work as expected ! Can someone please point out why this is not working.