From 49895c4b1fe75c6b1ff6d8d7acf5c250efff1c99 Mon Sep 17 00:00:00 2001 From: OgelGames Date: Mon, 19 Jun 2023 19:12:30 +1000 Subject: [PATCH] fix horizontal rotation direction --- modes/basic.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modes/basic.lua b/modes/basic.lua index df7df99..02a28a9 100644 --- a/modes/basic.lua +++ b/modes/basic.lua @@ -24,8 +24,10 @@ local function handler(pos, node, player, pointed, stack) local dir = minetest.yaw_to_dir(player:get_look_horizontal()) if math.abs(dir.x) > math.abs(dir.z) then axis = "z" + direction = math.sign(dir.x) * direction else axis = "x" + direction = math.sign(dir.z) * direction * -1 end end if pt == "facedir" or pt == "colorfacedir" then