mirror of
https://github.com/mt-mods/plantlife_modpack.git
synced 2025-01-13 19:00:23 +01:00
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
|
-- turn the node into cut grass, wear out item and play sound
|
||||||
minetest.set_node(pt.under, {name="dryplants:grass"})
|
minetest.set_node(pt.under, {name="dryplants:grass"})
|
||||||
else -- otherwise dig the node
|
else -- otherwise dig the node
|
||||||
if not minetest.dig_node(pt.under) then
|
if not minetest.node_dig(pt.under, under, user) then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user