diff options
author | Auke Kok <auke-jan.h.kok@intel.com> | 2015-04-10 11:46:07 -0700 |
---|---|---|
committer | Auke Kok <auke-jan.h.kok@intel.com> | 2015-04-10 11:46:07 -0700 |
commit | acd6cf5db5d044d36f48604eb35d6675a2080f81 (patch) | |
tree | 85433a04e91204552f2acb556e0957f80afde490 /corn.lua | |
parent | d9e83d0e40d7c755b3a1f019430897b7343df43f (diff) |
Don't make it wither if removing unripe corn plants.
Diffstat (limited to 'corn.lua')
-rw-r--r-- | corn.lua | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |