diff options
-rw-r--r-- | corn.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -138,12 +138,12 @@ minetest.register_node("crops:corn_base_2", { drop = {}, on_dig = function(pos, node, digger) 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 + if minetest.get_node(above).name == "crops:corn_top_1" or minetest.get_node(above).name == "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 + if not minetest.get_node(above).name == "crops:corn_top_3" then minetest.remove_node(pos) end |