Fix sickle issues commit number 3

This allows to dig doors or other snappy blocks you own.
This commit is contained in:
est31 2015-02-21 04:15:14 +01:00
parent e2ffae0b88
commit d7a64d7e52
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ local function sickle_on_use(itemstack, user, pointed_thing, uses)
-- turn the node into cut grass, wear out item and play sound
minetest.set_node(pt.under, {name="dryplants:grass"})
else -- otherwise dig the node
if not minetest.dig_node(pt.under) then
if not minetest.node_dig(pt.under, under, user) then
return
end
end