Fix flower breeding influence radius

This commit is contained in:
Aaron Suen 2021-09-25 11:56:26 -04:00
parent b73d1d1290
commit f763778436

View File

@ -209,7 +209,7 @@ minetest.register_abm({
local mutate = 1 + rads * rads / 20 local mutate = 1 + rads * rads / 20
print("rads " .. rads .. " mutate " .. mutate) print("rads " .. rads .. " mutate " .. mutate)
local peers = nodecore.find_nodes_around(grow, "group:flower_living", 2, 1) local peers = nodecore.find_nodes_around(grow, "group:flower_living", {2, 1, 2})
local shape = getvariation(node, peers, "nc_flower_shape", #shapes, mutate) local shape = getvariation(node, peers, "nc_flower_shape", #shapes, mutate)
if not shape then return die() end if not shape then return die() end
local color = getvariation(node, peers, "nc_flower_color", #colors, mutate) local color = getvariation(node, peers, "nc_flower_color", #colors, mutate)