From 1bd936ad8c9e326f9466af66d78c8bda75bfd1c6 Mon Sep 17 00:00:00 2001 From: Carter Kolwey Date: Sun, 25 Dec 2016 23:50:09 -0600 Subject: Properly handle rotation of buttons / levers Buttons and levers can now also be pointed upwards / downwards which will make them connect to corresponding up / down receivers. You will need to use the screwdriver for this. Receivers cannot be rotated using the screwdriver anymore. --- mesecons_walllever/init.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mesecons_walllever') diff --git a/mesecons_walllever/init.lua b/mesecons_walllever/init.lua index 9ae0655..e9454cd 100644 --- a/mesecons_walllever/init.lua +++ b/mesecons_walllever/init.lua @@ -31,6 +31,7 @@ mesecon.register_node("mesecons_walllever:wall_lever", { "jeija_wall_lever_back_edges.png" }, mesh="jeija_wall_lever_off.obj", + on_rotate = mesecon.buttonlike_onrotate, mesecons = {receptor = { rules = mesecon.rules.buttonlike_get, state = mesecon.state.off @@ -44,6 +45,7 @@ mesecon.register_node("mesecons_walllever:wall_lever", { "jeija_wall_lever_back_edges.png" }, mesh="jeija_wall_lever_on.obj", + on_rotate = false, mesecons = {receptor = { rules = mesecon.rules.buttonlike_get, state = mesecon.state.on -- cgit v1.2.3