forked from minetest-mods/mesecons
		
	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.
This commit is contained in:
		
							
								
								
									
										1
									
								
								mesecons_wires/doc/mesecon/description.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								mesecons_wires/doc/mesecon/description.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
Mesecons are the wires, use them to connect effectors with receptors.
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								mesecons_wires/doc/mesecon/preview.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								mesecons_wires/doc/mesecon/preview.png
									
									
									
									
									
										Executable file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 29 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								mesecons_wires/doc/mesecon/recipe.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								mesecons_wires/doc/mesecon/recipe.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 3.8 KiB  | 
		Reference in New Issue
	
	Block a user