Fixed luacheck warnings

This commit is contained in:
debagos 2024-01-11 11:31:00 +01:00
parent ab578aa8e2
commit 3cad1c0bef
3 changed files with 13 additions and 3 deletions

View File

@ -130,7 +130,8 @@ moretrees.dates_item_drop_ichance = 10 -- inverse probability of ripe dates dr
moretrees.sapling_interval = 100
moretrees.sapling_chance = 5
-- Enable this only if you have used an old moretrees version which was using biome_lib and when you notice large areas with ongen saplings that don't grow
-- Enable this only if you have used an old moretrees version which was using biome_lib
-- and when you notice large areas with ongen saplings that don't grow
moretrees.grow_legacy_saplings = false
-- If this variable is set to true, drop leaves out as entities during leaf

View File

@ -471,7 +471,15 @@ for i in ipairs(moretrees.treelist) do
})
end
local ongen_groups = {snappy=2,dig_immediate=3,flammable=2,attached_node=1,sapling=1,moretrees_ongen=1,not_in_creative_inventory=1}
local ongen_groups = {
snappy=2,
dig_immediate=3,
flammable=2,
attached_node=1,
sapling=1,
moretrees_ongen=1,
not_in_creative_inventory=1
}
if minetest.settings:get_bool("creative_mode", false) then
ongen_groups["not_in_creative_inventory"]=nil
end

View File

@ -74,7 +74,8 @@ moretrees.dates_item_drop_ichance = tonumber(stg:get("moretrees.dates_item_drop_
moretrees.sapling_interval = 100
moretrees.sapling_chance = 5
-- Enable this only if you have used an old moretrees version which was using biome_lib and when you notice large areas with ongen saplings that don't grow
-- Enable this only if you have used an old moretrees version which was using biome_lib
-- and when you notice large areas with ongen saplings that don't grow
moretrees.grow_legacy_saplings = stg:get_bool("moretrees.grow_legacy_saplings", false)
-- If this variable is set to true, drop leaves out as entities during leaf