Dry grass replacement: Use fallback param2
parent
4cc51a55c2
commit
a5b4a261dc
|
@ -774,6 +774,10 @@ minetest.register_lbm({
|
||||||
node.name = "mcl_core:dirt_with_grass"
|
node.name = "mcl_core:dirt_with_grass"
|
||||||
end
|
end
|
||||||
node.param2 = reg_biome._mcl_palette_index
|
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)
|
minetest.set_node(pos, node)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue