From 7537b9f38101a765481bf18899d930c9b1ea6e70 Mon Sep 17 00:00:00 2001 From: DS Date: Tue, 30 Jan 2018 19:47:03 +0100 Subject: Use rotate_simple for insulated wires (#382) --- mesecons_extrawires/tjunction.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mesecons_extrawires/tjunction.lua') diff --git a/mesecons_extrawires/tjunction.lua b/mesecons_extrawires/tjunction.lua index 018ee48..53a69f6 100644 --- a/mesecons_extrawires/tjunction.lua +++ b/mesecons_extrawires/tjunction.lua @@ -1,3 +1,5 @@ +local screwdriver_exists = minetest.global_exists("screwdriver") + local tjunction_nodebox = { type = "fixed", fixed = {{ -16/32-0.001, -17/32, -3/32, 16/32+0.001, -13/32, 3/32 }, @@ -48,6 +50,7 @@ minetest.register_node("mesecons_extrawires:tjunction_on", { offstate = "mesecons_extrawires:tjunction_off" }}, on_blast = mesecon.on_blastnode, + on_rotate = screwdriver_exists and screwdriver.rotate_simple, }) minetest.register_node("mesecons_extrawires:tjunction_off", { @@ -76,6 +79,7 @@ minetest.register_node("mesecons_extrawires:tjunction_off", { onstate = "mesecons_extrawires:tjunction_on" }}, on_blast = mesecon.on_blastnode, + on_rotate = screwdriver_exists and screwdriver.rotate_simple, }) minetest.register_craft({ -- cgit v1.2.3