Don't make it wither if removing unripe corn plants.
This commit is contained in:
parent
d9e83d0e40
commit
acd6cf5db5
2
corn.lua
2
corn.lua
@ -140,6 +140,8 @@ minetest.register_node("crops:corn_base_2", {
|
||||
local above = {x = pos.x, y = pos.y + 1, z = pos.z}
|
||||
if minetest.get_node(above) == "crops:corn_top_1" or minetest.get_node(above) == "crops:corn_top_2" then
|
||||
minetest.remove_node(above)
|
||||
minetest.remove_node(pos)
|
||||
return
|
||||
end
|
||||
if not minetest.get_node(above) == "crops:corn_top_3" then
|
||||
minetest.remove_node(pos)
|
||||
|
Loading…
x
Reference in New Issue
Block a user