fixed copy-pasted name in farming
This commit is contained in:
parent
bfc9d084dd
commit
7603be64d8
@ -54,7 +54,7 @@ function farming.register_plant(name, plant)
|
|||||||
|
|
||||||
local underdef = minetest.registered_nodes[minetest.get_node({x = pos.x, y = pos.y-1, z = pos.z}).name]
|
local underdef = minetest.registered_nodes[minetest.get_node({x = pos.x, y = pos.y-1, z = pos.z}).name]
|
||||||
|
|
||||||
if under.groups and under.groups.plantable_fertilizer then
|
if underdef.groups and underdef.groups.plantable_fertilizer then
|
||||||
print("Fertilizer!")
|
print("Fertilizer!")
|
||||||
farming.grow_plant(pos, name, plant)
|
farming.grow_plant(pos, name, plant)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user