light_source 2 nodes -> prevent complete darkness

This commit is contained in:
cora 2022-08-09 15:43:54 +02:00
parent 8d6a0bb564
commit 051beeea2e
1 changed files with 6 additions and 0 deletions

View File

@ -348,6 +348,12 @@ local function overwrite()
groups = newgroups
})
end
--
if nname ~= "ignore" and ndef.light_source == nil or ndef.light_source < 2 then
minetest.override_item(nname, {
light_source = 2
})
end
end
for tname, tdef in pairs(minetest.registered_tools) do