summaryrefslogtreecommitdiff
path: root/potato.lua
diff options
context:
space:
mode:
authorAuke Kok <sofar@foo-projects.org>2015-11-25 22:25:41 -0800
committerAuke Kok <sofar@foo-projects.org>2015-11-25 22:25:41 -0800
commit5329ff5b369602918fbb70b61351b2d89ae440eb (patch)
treee733b404acb8d415aaacad51275d72dce72d1b7b /potato.lua
parentf5908b08afddf6da3d569c2328fd61784da7a0c3 (diff)
Particle spawner on dead plants: flies.
These buzz around dead plants, right after they die.
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")