From 2528463db6f5f075ddf738c3d7439c35fb1461ac Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 9 Dec 2019 18:28:31 +0100 Subject: [PATCH] Remove reverse sign rotation --- mods/ITEMS/mcl_signs/init.lua | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/mods/ITEMS/mcl_signs/init.lua b/mods/ITEMS/mcl_signs/init.lua index 168d1083a..a4e6b3b16 100644 --- a/mods/ITEMS/mcl_signs/init.lua +++ b/mods/ITEMS/mcl_signs/init.lua @@ -443,11 +443,8 @@ local ssign = { if mode == screwdriver.ROTATE_FACE then node.name = "mcl_signs:standing_sign22_5" minetest.swap_node(pos, node) - -- reverse rotation elseif mode == screwdriver.ROTATE_AXIS then - node.name = "mcl_signs:standing_sign67_5" - node.param2 = (node.param2 - 1) % 4 - minetest.swap_node(pos, node) + return false end update_sign(pos, nil, nil, true) return true @@ -467,8 +464,7 @@ ssign22_5.on_rotate = function(pos, node, user, mode) node.name = "mcl_signs:standing_sign45" minetest.swap_node(pos, node) elseif mode == screwdriver.ROTATE_AXIS then - node.name = "mcl_signs:standing_sign" - minetest.swap_node(pos, node) + return false end update_sign(pos, nil, nil, true) return true @@ -483,8 +479,7 @@ ssign45.on_rotate = function(pos, node, user, mode) node.name = "mcl_signs:standing_sign67_5" minetest.swap_node(pos, node) elseif mode == screwdriver.ROTATE_AXIS then - node.name = "mcl_signs:standing_sign22_5" - minetest.swap_node(pos, node) + return false end update_sign(pos, nil, nil, true) return true @@ -500,8 +495,7 @@ ssign67_5.on_rotate = function(pos, node, user, mode) node.param2 = (node.param2 + 1) % 4 minetest.swap_node(pos, node) elseif mode == screwdriver.ROTATE_AXIS then - node.name = "mcl_signs:standing_sign45" - minetest.swap_node(pos, node) + return false end update_sign(pos, nil, nil, true) return true