summaryrefslogtreecommitdiff
path: root/potato.lua
diff options
context:
space:
mode:
Diffstat (limited to 'potato.lua')
-rw-r--r--potato.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/potato.lua b/potato.lua
index 248957b..b1aa889 100644
--- a/potato.lua
+++ b/potato.lua
@@ -125,7 +125,7 @@ minetest.register_abm({
local meta = minetest.get_meta(pos)
local damage = meta:get_int("crops_damage")
if damage == 100 then
- minetest.set_node(pos, { name = "crops:potato_plant_5" })
+ crops.die(pos)
return
end
local n = string.gsub(node.name, "3", "4")