diff options
author | Carter Kolwey <cheapiephp@gmail.com> | 2016-12-25 23:50:09 -0600 |
---|---|---|
committer | Jeija <norrepli@gmail.com> | 2017-01-02 14:51:28 +0100 |
commit | 1bd936ad8c9e326f9466af66d78c8bda75bfd1c6 (patch) | |
tree | 09cd677fcc1e8e9486248d824b80ca2d34256728 /mesecons_walllever | |
parent | 79edbed8d7dc3a0280b2f631b95e36a49d7c5916 (diff) |
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.
Diffstat (limited to 'mesecons_walllever')
-rw-r--r-- | mesecons_walllever/init.lua | 2 |
1 files changed, 2 insertions, 0 deletions
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 |