@ -4,7 +4,6 @@ local math_round, minetest, vector
local is_rightclick_filtered = nc_extended_rotating.registry . is_rightclick_filtered ;
local is_rightclick_filtered = nc_extended_rotating.registry . is_rightclick_filtered ;
local is_rotatable = nc_extended_rotating.registry . is_rotatable ;
local is_rotatable = nc_extended_rotating.registry . is_rotatable ;
local rotate_facedir = nc_extended_rotating.rotate . rotate_facedir ;
local rotate_facedir = nc_extended_rotating.rotate . rotate_facedir ;
local fix_rotatable_facedir = nc_extended_rotating.utility . fix_rotatable_facedir ;
local rotation_vector_from_lookat = nc_extended_rotating.utility . rotation_vector_from_lookat ;
local rotation_vector_from_lookat = nc_extended_rotating.utility . rotation_vector_from_lookat ;
-- Distance at which we want to rotate by "pushing" on an edge.
-- Distance at which we want to rotate by "pushing" on an edge.
@ -66,7 +65,6 @@ local function calculate_rotating_state(player, data)
state.invert = is_sneaking
state.invert = is_sneaking
state.facedir = rotate_facedir ( state.node . param2 , state.axis , - degrees )
state.facedir = rotate_facedir ( state.node . param2 , state.axis , - degrees )
state.facedir = fix_rotatable_facedir ( state.node , state.facedir )
state.success = state.facedir and state.facedir ~= state.node . param2
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.
-- TODO: Until we have a way to display "rotation non-success", don't show rotation hint at all.