From 3d9df5c797fbefd54c803e1deeef60896f779f8c Mon Sep 17 00:00:00 2001 From: FossFanatic Date: Wed, 15 Feb 2023 12:20:15 +0000 Subject: [PATCH] Fix issue with vines in certain biomes This commit removes some excessive checks which caused vines to not get a biome colour in certain biomes at certain rotations. --- mods/MAPGEN/mcl_mapgen_core/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/MAPGEN/mcl_mapgen_core/init.lua b/mods/MAPGEN/mcl_mapgen_core/init.lua index f3e95bc81..91d5114ee 100644 --- a/mods/MAPGEN/mcl_mapgen_core/init.lua +++ b/mods/MAPGEN/mcl_mapgen_core/init.lua @@ -431,7 +431,7 @@ minetest.register_lbm({ node.param2 = grass_palette_index minetest.set_node(pos, node) end - end, + end }) minetest.register_lbm({ @@ -449,7 +449,7 @@ minetest.register_lbm({ elseif node.param2 ~= foliage_palette_index and node.name ~= "mcl_core:vine" then node.param2 = foliage_palette_index minetest.set_node(pos, node) - elseif node.param2 ~= foliage_palette_index and node.name == "mcl_core:vine" then + elseif node.name == "mcl_core:vine" then local biome_param2 = foliage_palette_index local rotation_param2 = node.param2 local final_param2 = (biome_param2 * 8) + rotation_param2 @@ -470,7 +470,7 @@ minetest.register_on_generated(function(minp, maxp, blockseed) -- Set correct pa if fnode.param2 ~= foliage_palette_index and fnode.name ~= "mcl_core:vine" then fnode.param2 = foliage_palette_index minetest.set_node(fpos, fnode) - elseif fnode.param2 ~= foliage_palette_index and fnode.name == "mcl_core:vine" then + elseif fnode.name == "mcl_core:vine" then local biome_param2 = foliage_palette_index local rotation_param2 = fnode.param2 local final_param2 = (biome_param2 * 8) + rotation_param2