forked from mtcontrib/plantlife_modpack
Fix sickle issues commit number 3
This allows to dig doors or other snappy blocks you own.
This commit is contained in:
parent
e2ffae0b88
commit
d7a64d7e52
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user