diff --git a/mods/ITEMS/mcl_core/functions.lua b/mods/ITEMS/mcl_core/functions.lua index fb15e9c848..e8d7c2c2d3 100644 --- a/mods/ITEMS/mcl_core/functions.lua +++ b/mods/ITEMS/mcl_core/functions.lua @@ -757,9 +757,10 @@ minetest.register_abm({ end, }) +local SAVANNA_INDEX = 1 minetest.register_lbm({ label = "Replace legacy dry grass", - name = "mcl_core:replace_legacy_dry_grass", + name = "mcl_core:replace_legacy_dry_grass_0_65_0", nodenames = {"mcl_core:dirt_with_dry_grass", "mcl_core:dirt_with_dry_grass_snow"}, action = function(pos, node) local biome_data = minetest.get_biome_data(pos) @@ -776,11 +777,15 @@ minetest.register_lbm({ node.param2 = reg_biome._mcl_palette_index -- Fall back to savanna palette index if not node.param2 then - node.param2 = 1 + node.param2 = SAVANNA_INDEX end minetest.set_node(pos, node) + return end end + node.param2 = SAVANNA_INDEX + minetest.set_node(pos, node) + return end, })