From 1714a3d998a556498af3b19d03dffcc88cfab42d Mon Sep 17 00:00:00 2001 From: Niklp09 <89982526+Niklp09@users.noreply.github.com> Date: Tue, 13 Jun 2023 18:15:29 +0200 Subject: [PATCH] fix node rotation --- display_api/display.lua | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/display_api/display.lua b/display_api/display.lua index a88cbb1..2baef11 100644 --- a/display_api/display.lua +++ b/display_api/display.lua @@ -260,13 +260,9 @@ function display_api.on_rotate(pos, node, user, _, new_param2) return end - if ov.restricted then - minetest.swap_node(pos, node) - display_api.update_entities(pos) - return true - else - return false - end + minetest.swap_node(pos, node) + display_api.update_entities(pos) + return true end --- Creates display entity with some fields and the on_activate callback