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_button/init.lua | |
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_button/init.lua')
-rw-r--r-- | mesecons_button/init.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesecons_button/init.lua b/mesecons_button/init.lua index f287d52..11c328c 100644 --- a/mesecons_button/init.lua +++ b/mesecons_button/init.lua @@ -26,6 +26,7 @@ minetest.register_node("mesecons_button:button_off", { paramtype2 = "facedir", legacy_wallmounted = true, walkable = false, + on_rotate = mesecon.buttonlike_onrotate, sunlight_propagates = true, selection_box = { type = "fixed", @@ -67,6 +68,7 @@ minetest.register_node("mesecons_button:button_on", { paramtype2 = "facedir", legacy_wallmounted = true, walkable = false, + on_rotate = false, light_source = default.LIGHT_MAX-7, sunlight_propagates = true, selection_box = { |