Fix crash when a cocoa flower grows to pod

This commit is contained in:
Wuzzy 2020-11-12 19:37:20 +01:00
parent c7b3bbcd20
commit a674614abb

View File

@ -90,7 +90,7 @@ function refruit.add_refruit(id, def)
interval = def.flower_interval,
chance = def.flower_chance,
action = function(pos, node)
minetest.set_node(pos, {name="hades_trees:"..id})
minetest.set_node(pos, {name=def.fruit_itemstring})
end,
})