From 201ba616fe77e711aab3e66bde155e0f809d22dd Mon Sep 17 00:00:00 2001 From: kno10 Date: Sat, 24 Aug 2024 19:25:18 +0200 Subject: [PATCH] disable foliage 'fixes' that cause multi-colored trees --- mods/MAPGEN/mcl_mapgen_core/init.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mods/MAPGEN/mcl_mapgen_core/init.lua b/mods/MAPGEN/mcl_mapgen_core/init.lua index 0e3efe087..b11fc94e3 100644 --- a/mods/MAPGEN/mcl_mapgen_core/init.lua +++ b/mods/MAPGEN/mcl_mapgen_core/init.lua @@ -416,7 +416,7 @@ mcl_mapgen_core.register_generator("end_fixes", end_basic, nil, 9999, true) if mg_name ~= "v6" and mg_name ~= "singlenode" then mcl_mapgen_core.register_generator("block_fixes_grass", block_fixes_grass, nil, 9999, true) - mcl_mapgen_core.register_generator("block_fixes_foliage", block_fixes_foliage, nil, 9999, true) + --mcl_mapgen_core.register_generator("block_fixes_foliage", block_fixes_foliage, nil, 9999, true) mcl_mapgen_core.register_generator("block_fixes_water", block_fixes_water, nil, 9999, true) mcl_mapgen_core.register_generator("block_fixes_seagrass", block_fixes_seagrass, nil, 9999, true) end @@ -493,6 +493,7 @@ minetest.register_lbm({ end }) +--[[ -- We go outside x and y for where trees are placed next to a biome that has already been generated. -- We go above maxp.y because trees can often get placed close to the top of a generated area and folliage may not -- be coloured correctly. @@ -519,5 +520,5 @@ local function fix_foliage_missed(minp, maxp, blockseed) end minetest.register_on_generated(function(minp, maxp, blockseed) -- Set correct palette indexes of missed foliage. - fix_foliage_missed (minp, maxp) -end) + fix_foliage_missed(minp, maxp) +end)]]