fix node rotation
This commit is contained in:
parent
596e6d7490
commit
1714a3d998
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue