From e082ea473b2c9a50a6ab3c1cf70ca8f39f50ad5b Mon Sep 17 00:00:00 2001 From: OgelGames Date: Sun, 28 Nov 2021 14:40:40 +1100 Subject: [PATCH] fix missing argument when calling `on_rightclick` --- devices.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/devices.lua b/devices.lua index 49875c8..6e6b6e4 100644 --- a/devices.lua +++ b/devices.lua @@ -28,7 +28,9 @@ function pipeworks.rotate_on_place(itemstack, placer, pointed_thing) if (not placer:get_player_control().sneak) and minetest.registered_nodes[node.name] and minetest.registered_nodes[node.name].on_rightclick then - minetest.registered_nodes[node.name].on_rightclick(pointed_thing.under, node, placer, itemstack) + minetest.registered_nodes[node.name].on_rightclick(pointed_thing.under, + node, placer, itemstack, pointed_thing) + else local pitch = placer:get_look_pitch()