From d28dcb1b10b96fd8f3ea6ea7317d7710ccd73b6d Mon Sep 17 00:00:00 2001 From: FossFanatic Date: Fri, 7 Apr 2023 07:36:01 +0000 Subject: [PATCH] Another small change to account for mangrove leaves This one should actually work as expected. --- mods/MAPGEN/mcl_mapgen_core/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/MAPGEN/mcl_mapgen_core/init.lua b/mods/MAPGEN/mcl_mapgen_core/init.lua index 153da255b8..a6930bc2ef 100644 --- a/mods/MAPGEN/mcl_mapgen_core/init.lua +++ b/mods/MAPGEN/mcl_mapgen_core/init.lua @@ -302,7 +302,7 @@ local function set_foliage_palette(minp,maxp,data2,area,biomemap,nodes) local bn = minetest.get_biome_name(biomemap[b_pos]) if bn then local biome = minetest.registered_biomes[bn] - if biome and biome._mcl_biome_type and biome._mcl_foliage_palette_index and data2[p_pos] == 0 then + if biome and biome._mcl_biome_type and biome._mcl_foliage_palette_index and data2[p_pos] <= 1 then data2[p_pos] = biome._mcl_foliage_palette_index lvm_used = true elseif biome and biome._mcl_biome_type and biome._mcl_foliage_palette_index and data2[p_pos] > 1 then