From a5b4a261dc4ccdd808e018824f83a0ceccb24498 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 16 Dec 2019 23:59:49 +0100 Subject: [PATCH] Dry grass replacement: Use fallback param2 --- mods/ITEMS/mcl_core/functions.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/ITEMS/mcl_core/functions.lua b/mods/ITEMS/mcl_core/functions.lua index ae67a669..47ac0549 100644 --- a/mods/ITEMS/mcl_core/functions.lua +++ b/mods/ITEMS/mcl_core/functions.lua @@ -774,6 +774,10 @@ minetest.register_lbm({ node.name = "mcl_core:dirt_with_grass" end node.param2 = reg_biome._mcl_palette_index + -- Fall back to savanna palette index + if not node.param2 then + node.param2 = 1 + end minetest.set_node(pos, node) end end