diff --git a/mods/ITEMS/REDSTONE/mcl_pistons/api.lua b/mods/ITEMS/REDSTONE/mcl_pistons/api.lua index e6fd8ec3e..c645975ab 100644 --- a/mods/ITEMS/REDSTONE/mcl_pistons/api.lua +++ b/mods/ITEMS/REDSTONE/mcl_pistons/api.lua @@ -77,7 +77,7 @@ function mcl_pistons.push(pos, movedir, maximum, player_name, piston_pos) for _, dir in pairs(sixdirs) do offset_pos = np:add(dir:multiply(-1)) offset_node = minetest.get_node(offset_pos) - is_connected = minetest.registered_nodes[nn.name]._mcl_pistons_sticky(offset_node, dir) + is_connected = minetest.registered_nodes[nn.name]._mcl_pistons_sticky(nn, offset_node, dir) if is_connected and minetest.get_item_group(offset_node.name, "unsticky") == 0 and minetest.get_item_group(offset_node.name, "unmovable_by_piston") == 0 diff --git a/mods/ITEMS/mcl_core/nodes_misc.lua b/mods/ITEMS/mcl_core/nodes_misc.lua index 5ab341b7e..f8aa67e71 100644 --- a/mods/ITEMS/mcl_core/nodes_misc.lua +++ b/mods/ITEMS/mcl_core/nodes_misc.lua @@ -51,8 +51,8 @@ minetest.register_node("mcl_core:slimeblock", { }, _mcl_blast_resistance = 0, _mcl_hardness = 0, - _mcl_pistons_sticky = function(node, direction) - return node.name ~= "mcl_honey:honey_block" + _mcl_pistons_sticky = function(node, node_to, direction) + return node_to.name ~= "mcl_honey:honey_block" end, }) diff --git a/mods/ITEMS/mcl_honey/init.lua b/mods/ITEMS/mcl_honey/init.lua index f2fc046ee..dc520a01f 100644 --- a/mods/ITEMS/mcl_honey/init.lua +++ b/mods/ITEMS/mcl_honey/init.lua @@ -60,8 +60,8 @@ minetest.register_node("mcl_honey:honey_block", { }, _mcl_blast_resistance = 0, _mcl_hardness = 0, - _mcl_pistons_sticky = function(node, dir) - return node.name ~= "mcl_core:slimeblock" + _mcl_pistons_sticky = function(node, node_to, dir) + return node_to.name ~= "mcl_core:slimeblock" end, })