From f800f876afb2b2451d4fd512cc57923d12991edb Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 10 Feb 2017 21:32:25 +0100 Subject: [PATCH] Drop flower+pot after digging filled flower pots --- mods/mcl_flowerpots/nodes.lua | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/mods/mcl_flowerpots/nodes.lua b/mods/mcl_flowerpots/nodes.lua index 337d3563..d61d8571 100644 --- a/mods/mcl_flowerpots/nodes.lua +++ b/mods/mcl_flowerpots/nodes.lua @@ -108,7 +108,11 @@ minetest.register_node("mcl_flowerpots:flower_pot_"..flower, { minetest.add_item({x=pos.x, y=pos.y+0.5, z=pos.z}, flower_node) minetest.set_node(pos, {name="mcl_flowerpots:flower_pot"}) end, - drop = "mcl_flowerpots:flower_pot", + drop = { + items = { + { items = { "mcl_flowerpots:flower_pot", flower_node } } + } + }, }) end @@ -140,6 +144,10 @@ minetest.register_node("mcl_flowerpots:flower_pot_"..flower, { minetest.add_item({x=pos.x, y=pos.y+0.5, z=pos.z}, flower_node) minetest.set_node(pos, {name="mcl_flowerpots:flower_pot"}) end, - drop = "mcl_flowerpots:flower_pot", + drop = { + items = { + { items = { "mcl_flowerpots:flower_pot", flower_node } } + } + }, }) end