From b0b675f715d952e7505291b6647484c6dbb573c7 Mon Sep 17 00:00:00 2001 From: wsor4035 <24964441+wsor4035@users.noreply.github.com> Date: Sun, 8 Jan 2023 21:51:49 -0500 Subject: [PATCH] Fix deprecated call to `player:get_look_pitch()` Fixes #53 --- devices.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devices.lua b/devices.lua index 9a08a3c..c5c9bf1 100644 --- a/devices.lua +++ b/devices.lua @@ -35,7 +35,7 @@ function pipeworks.rotate_on_place(itemstack, placer, pointed_thing) else - local pitch = placer:get_look_pitch() + local pitch = -placer:get_look_vertical() local above = pointed_thing.above local under = pointed_thing.under local fdir = minetest.dir_to_facedir(placer:get_look_dir())