From 8bf8c64841ba952f759a0b5098a2d3c4b5abb080 Mon Sep 17 00:00:00 2001 From: copygirl Date: Fri, 27 Oct 2023 23:18:18 +0200 Subject: [PATCH] Don't show rotation hint on "non-success" --- state.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/state.lua b/state.lua index d4ebb02..04f9e5e 100755 --- a/state.lua +++ b/state.lua @@ -69,6 +69,9 @@ local function calculate_rotating_state(player, data) state.facedir = fix_rotatable_facedir(state.node, state.facedir) state.success = state.facedir and state.facedir ~= state.node.param2 + -- TODO: Until we have a way to display "rotation non-success", don't show rotation hint at all. + if not state.success then return nil end + return state end