From 04960c8ab93071e1f38557687a0118f6a3c2e310 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 8 Mar 2017 00:37:07 +0100 Subject: [PATCH] Drop vines when digging with shears --- mods/ITEMS/mcl_core/nodes.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_core/nodes.lua b/mods/ITEMS/mcl_core/nodes.lua index e9ae2d86c..1c9be61c1 100644 --- a/mods/ITEMS/mcl_core/nodes.lua +++ b/mods/ITEMS/mcl_core/nodes.lua @@ -1270,7 +1270,7 @@ minetest.register_node("mcl_core:vine", { after_dig_node = function(pos, oldnode, oldmetadata, user) local item = user:get_wielded_item() if item:get_name() == "mcl_tools:shears" then - user:get_inventory():add_item("main", ItemStack(oldnode.name)) + minetest.add_item(pos, oldnode.name) end end, _mcl_blast_resistance = 1, @@ -1593,7 +1593,7 @@ minetest.register_node("mcl_core:tallgrass", { after_dig_node = function(pos, oldnode, oldmetadata, user) local item = user:get_wielded_item() if item:get_name() == "mcl_tools:shears" then - user:get_inventory():add_item("main", ItemStack(oldnode.name)) + minetest.add_item(pos, oldnode.name) end end, _mcl_blast_resistance = 0,