diff options
author | DS <vorunbekannt75@web.de> | 2018-01-30 19:47:03 +0100 |
---|---|---|
committer | Vitaliy <silverunicorn2011@yandex.ru> | 2018-01-30 21:47:03 +0300 |
commit | 7537b9f38101a765481bf18899d930c9b1ea6e70 (patch) | |
tree | 5b03a3d9994399e399c31347f1451bbe1b629db9 /mesecons_extrawires/corner.lua | |
parent | 065e870349cf394240cf9748db4743c0d6d54461 (diff) |
Use rotate_simple for insulated wires (#382)
Diffstat (limited to 'mesecons_extrawires/corner.lua')
-rw-r--r-- | mesecons_extrawires/corner.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesecons_extrawires/corner.lua b/mesecons_extrawires/corner.lua index 27cfab8..8dc9866 100644 --- a/mesecons_extrawires/corner.lua +++ b/mesecons_extrawires/corner.lua @@ -1,3 +1,5 @@ +local screwdriver_exists = minetest.global_exists("screwdriver") + local corner_nodebox = { type = "fixed", fixed = {{ -16/32-0.001, -17/32, -3/32, 0, -13/32, 3/32 }, @@ -47,6 +49,7 @@ minetest.register_node("mesecons_extrawires:corner_on", { offstate = "mesecons_extrawires:corner_off" }}, on_blast = mesecon.on_blastnode, + on_rotate = screwdriver_exists and screwdriver.rotate_simple, }) minetest.register_node("mesecons_extrawires:corner_off", { @@ -75,6 +78,7 @@ minetest.register_node("mesecons_extrawires:corner_off", { onstate = "mesecons_extrawires:corner_on" }}, on_blast = mesecon.on_blastnode, + on_rotate = screwdriver_exists and screwdriver.rotate_simple, }) minetest.register_craft({ |