1
0
Fork 0

Remove reverse sign rotation

objects
Wuzzy 2019-12-09 18:28:31 +01:00
parent 643b1e7933
commit 2528463db6
1 changed files with 4 additions and 10 deletions

View File

@ -443,11 +443,8 @@ local ssign = {
if mode == screwdriver.ROTATE_FACE then if mode == screwdriver.ROTATE_FACE then
node.name = "mcl_signs:standing_sign22_5" node.name = "mcl_signs:standing_sign22_5"
minetest.swap_node(pos, node) minetest.swap_node(pos, node)
-- reverse rotation
elseif mode == screwdriver.ROTATE_AXIS then elseif mode == screwdriver.ROTATE_AXIS then
node.name = "mcl_signs:standing_sign67_5" return false
node.param2 = (node.param2 - 1) % 4
minetest.swap_node(pos, node)
end end
update_sign(pos, nil, nil, true) update_sign(pos, nil, nil, true)
return true return true
@ -467,8 +464,7 @@ ssign22_5.on_rotate = function(pos, node, user, mode)
node.name = "mcl_signs:standing_sign45" node.name = "mcl_signs:standing_sign45"
minetest.swap_node(pos, node) minetest.swap_node(pos, node)
elseif mode == screwdriver.ROTATE_AXIS then elseif mode == screwdriver.ROTATE_AXIS then
node.name = "mcl_signs:standing_sign" return false
minetest.swap_node(pos, node)
end end
update_sign(pos, nil, nil, true) update_sign(pos, nil, nil, true)
return true return true
@ -483,8 +479,7 @@ ssign45.on_rotate = function(pos, node, user, mode)
node.name = "mcl_signs:standing_sign67_5" node.name = "mcl_signs:standing_sign67_5"
minetest.swap_node(pos, node) minetest.swap_node(pos, node)
elseif mode == screwdriver.ROTATE_AXIS then elseif mode == screwdriver.ROTATE_AXIS then
node.name = "mcl_signs:standing_sign22_5" return false
minetest.swap_node(pos, node)
end end
update_sign(pos, nil, nil, true) update_sign(pos, nil, nil, true)
return true return true
@ -500,8 +495,7 @@ ssign67_5.on_rotate = function(pos, node, user, mode)
node.param2 = (node.param2 + 1) % 4 node.param2 = (node.param2 + 1) % 4
minetest.swap_node(pos, node) minetest.swap_node(pos, node)
elseif mode == screwdriver.ROTATE_AXIS then elseif mode == screwdriver.ROTATE_AXIS then
node.name = "mcl_signs:standing_sign45" return false
minetest.swap_node(pos, node)
end end
update_sign(pos, nil, nil, true) update_sign(pos, nil, nil, true)
return true return true