Fix param2 not being set when grass spreads

This commit is contained in:
cora 2024-12-17 07:29:42 +01:00 committed by ryvnf
parent 31f3b1302b
commit 3d69189918

View File

@ -294,7 +294,7 @@ minetest.register_abm({
if minetest.get_item_group(n2.name, "grass_block") ~= 0 then
n2 = mcl_core.get_grass_block_type(pos)
end
minetest.swap_node(pos, {name=n2.name})
minetest.swap_node(pos, n2)
-- If this was mycelium, uproot plant above
if n2.name == "mcl_core:mycelium" then