From bc4d9211cb5edc689e2169df1c10b8a1a95f22a1 Mon Sep 17 00:00:00 2001 From: SmokeyDope Date: Fri, 3 Feb 2023 00:43:17 +0000 Subject: [PATCH] Update nether vine breaking logic with vector.offset --- mods/ITEMS/mcl_crimson/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_crimson/init.lua b/mods/ITEMS/mcl_crimson/init.lua index f0d1318fe..0c61f3cee 100644 --- a/mods/ITEMS/mcl_crimson/init.lua +++ b/mods/ITEMS/mcl_crimson/init.lua @@ -144,7 +144,7 @@ minetest.register_node("mcl_crimson:twisting_vines", { return itemstack end, on_dig = function(pos, node, digger) - local above = {x=pos.x, y=pos.y+1, z=pos.z} + local above = vector.offset(pos,0,1,0) local abovenode = minetest.get_node(above) minetest.node_dig(pos, node, digger) if abovenode.name == node.name and (not mcl_core.check_vines_supported(above, abovenode)) then @@ -220,7 +220,7 @@ minetest.register_node("mcl_crimson:weeping_vines", { end, 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