mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 08:29:34 +01:00
Update overworld vine breaking logic with vector.offset
This commit is contained in:
parent
bc4d9211cb
commit
08df1fe02f
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ minetest.register_node("mcl_core:vine", {
|
|||
-- If dug, also dig a “dependant” vine below it.
|
||||
-- A vine is dependant if it hangs from this node and has no supporting block.
|
||||
on_dig = function(pos, node, digger)
|
||||
local below = {x=pos.x, y=pos.y-1, z=pos.z}
|
||||
local below = vector.offset(pos,0,-1,0)
|
||||
local belownode = minetest.get_node(below)
|
||||
minetest.node_dig(pos, node, digger)
|
||||
if belownode.name == node.name and (not mcl_core.check_vines_supported(below, belownode)) then
|
||||
|
|
Loading…
Reference in a new issue