From 5329ff5b369602918fbb70b61351b2d89ae440eb Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Wed, 25 Nov 2015 22:25:41 -0800 Subject: Particle spawner on dead plants: flies. These buzz around dead plants, right after they die. --- corn.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'corn.lua') diff --git a/corn.lua b/corn.lua index 467eff6..debd661 100644 --- a/corn.lua +++ b/corn.lua @@ -290,8 +290,7 @@ minetest.register_node("crops:corn_top_3", { for i = 1,math.random(2 - (damage / 100), 4 - (3 * (damage / 100))) do table.insert(drops, ('crops:corn_cob')) end - minetest.set_node(pos, { name = "crops:corn_top_4" }) - minetest.set_node(below, { name = "crops:corn_base_3" }) + crops.die(below) core.handle_node_drops(pos, drops, digger) end }) -- cgit v1.2.3