From 5f2cc506f087532c71a4fb6e06723d8646f9a8d3 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 14 Dec 2019 01:41:49 +0100 Subject: [PATCH] Fix broken legacy dry grass LBM --- mods/ITEMS/mcl_core/functions.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_core/functions.lua b/mods/ITEMS/mcl_core/functions.lua index 551201a2e5..5ef133fbd4 100644 --- a/mods/ITEMS/mcl_core/functions.lua +++ b/mods/ITEMS/mcl_core/functions.lua @@ -763,13 +763,18 @@ minetest.register_lbm({ 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) - local index = 0 if biome_data then local biome = biome_data.biome local biome_name = minetest.get_biome_name(biome) local reg_biome = minetest.registered_biomes[biome_name] if reg_biome then - minetest.set_node(pos, {name = node.name, param2 = reg_biome._mcl_palette_index}) + if node.name == "mcl_core:dirt_with_dry_grass_snow" then + node.name = "mcl_core:dirt_with_grass_snow" + else + node.name = "mcl_core:dirt_with_grass" + end + node.param2 = reg_biome._mcl_palette_index + minetest.set_node(pos, node) end end end,