From 4c528793c361b1096df8d7d6a7410d4942fec1b4 Mon Sep 17 00:00:00 2001 From: copygirl Date: Thu, 26 Oct 2023 11:30:33 +0200 Subject: [PATCH] Fix state calculation returning incorrect mode --- state.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/state.lua b/state.lua index b3663c2..2792821 100755 --- a/state.lua +++ b/state.lua @@ -52,7 +52,7 @@ local function calculate_rotating_state(player, data) local num = math_round(r.x * r.x + r.y * r.y + r.z * r.z) -- Squared length. if num == 1 then state.mode = "face" elseif num == 2 then state.mode = "edge"; state.axis = state.face:cross(r) - elseif num == 3 then state.mode = "mirror"; degrees = 120 + elseif num == 3 then state.mode = "corner"; degrees = 120 end -- Sneaking causes the direction of the rotation to be inverted.