From 912f17f33590df4ad76775a3511881ad4bbf4853 Mon Sep 17 00:00:00 2001 From: Carter Kolwey Date: Tue, 23 Aug 2016 00:20:46 -0500 Subject: Split wires into their own mod, introduce autoconnect hooks The update_autoconnect function had to be abstracted away from the default wires, any kind of wire can now register autoconnect hooks, which should make having multiple different wire types much easier. mesecons_mvps, mesecons_receiver and mesecons_random made use of update_autoconnect, their code was also adapted. This also fixes a receiver bug: If a receiver was placed with a onstate receptor next to it (but not the wall lever / button that caused the receiver to appear) the receiver didn't turn on in the past. Also move documentation for mesecon wire into mesecons_wire. --- documentation.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'documentation.json') diff --git a/documentation.json b/documentation.json index 8cc0254..711f7d2 100644 --- a/documentation.json +++ b/documentation.json @@ -1,6 +1,6 @@ { "Conductors" : { - "Mesecon" : "mesecons/doc/mesecon", + "Mesecon" : "mesecons_wires/doc/mesecon", "Insulated Wire" : "mesecons_insulated/doc/insulated", "T-Junction" : "mesecons_extrawires/doc/tjunction", "Crossing" : "mesecons_extrawires/doc/crossing", -- cgit v1.2.3