Fix incomplete dry grass replacement LBM
This commit is contained in:
parent
c81a18ac1a
commit
eea07f0ce7
|
@ -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,
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue