From acd6cf5db5d044d36f48604eb35d6675a2080f81 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Fri, 10 Apr 2015 11:46:07 -0700 Subject: Don't make it wither if removing unripe corn plants. --- corn.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'corn.lua') diff --git a/corn.lua b/corn.lua index a29d96a..a5a4d00 100644 --- a/corn.lua +++ b/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) -- cgit v1.2.3