forked from VoxeLibre/VoxeLibre
light_source 2 nodes -> prevent complete darkness
This commit is contained in:
parent
8d6a0bb564
commit
051beeea2e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue