Fix light_source level 1

This commit is contained in:
kay27 2021-12-15 04:23:11 +04:00
parent 3a402c8054
commit 59fa6a91e9
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,8 @@ minetest.register_on_mods_loaded(function ()
local light_source = def.light_source
if light_source == nil or light_source < light_min then
minetest.override_item(i, { light_source = light_min })
elseif light_source == light_min then
minetest.override_item(i, { light_source = light_min + 1 })
end
end
end)