2 Add extra checks for on_generated when biomes are disabled

This commit is contained in:
Juraj Vajda 2023-02-20 11:48:42 -05:00
parent 01b5918af1
commit 24d66f452b

View File

@ -38,8 +38,13 @@ local deco_ids_baobab = {
local deco_id_coral_bones_tree = minetest.get_decoration_id('everness:coral_forest_coral_bones_tree') local deco_id_coral_bones_tree = minetest.get_decoration_id('everness:coral_forest_coral_bones_tree')
minetest.set_gen_notify('decoration', deco_ids_baobab) if #deco_ids_baobab > 1 then
minetest.set_gen_notify('decoration', { deco_id_coral_bones_tree }) minetest.set_gen_notify('decoration', deco_ids_baobab)
end
if deco_id_coral_bones_tree then
minetest.set_gen_notify('decoration', { deco_id_coral_bones_tree })
end
-- Localise data buffer table outside the loop, to be re-used for all -- Localise data buffer table outside the loop, to be re-used for all
-- mapchunks, therefore minimising memory use. -- mapchunks, therefore minimising memory use.