1
0
Fork 0

Drop vines when digging with shears

This commit is contained in:
Wuzzy 2017-03-08 00:37:07 +01:00
parent dcb7090a34
commit 04960c8ab9
1 changed files with 2 additions and 2 deletions

View File

@ -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,