fix node rotation

This commit is contained in:
Niklp09 2023-06-13 18:15:29 +02:00
parent 596e6d7490
commit 1714a3d998
1 changed files with 3 additions and 7 deletions

View File

@ -260,13 +260,9 @@ function display_api.on_rotate(pos, node, user, _, new_param2)
return return
end end
if ov.restricted then minetest.swap_node(pos, node)
minetest.swap_node(pos, node) display_api.update_entities(pos)
display_api.update_entities(pos) return true
return true
else
return false
end
end end
--- Creates display entity with some fields and the on_activate callback --- Creates display entity with some fields and the on_activate callback