forked from mtcontrib/moretrees
Fix dead ongen saplings due to biome_lib secession (#35)
* Replaced print with minetest.log in init.lua * Added moretrees_ongen group to ongen saplings * Added LBM and setting to enable it for non-functional ongen saplings due to biome_lib secession * Changed LBM run_at_every_load to true * Fixed luacheck warnings * Using random interval for node timer, like in the on_generated timer interval * Update init.lua * Update node_defs.lua --------- Co-authored-by: Niklp <nik@niklp.net>
This commit is contained in:
@ -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,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
|
||||
|
Reference in New Issue
Block a user