forked from mtcontrib/pipeworks
		
	fix missing wield/inventory image on "compatibility" tubes
gave them fuller node defs with descriptions et al. also and made them directly call the scan-for-tube-objects function when placed.
This commit is contained in:
		
							
								
								
									
										11
									
								
								tubes.lua
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								tubes.lua
									
									
									
									
									
								
							| @@ -177,6 +177,17 @@ pipeworks.register_tube = function(name, desc, plain, noctrs, ends, short, inv, | |||||||
| 				drawtype = "airlike", | 				drawtype = "airlike", | ||||||
| 				style = "6d", | 				style = "6d", | ||||||
| 				basename = name, | 				basename = name, | ||||||
|  | 				inventory_image = inv, | ||||||
|  | 				wield_image = inv, | ||||||
|  | 				paramtype = light, | ||||||
|  | 				sunlight_propagates = true, | ||||||
|  | 				description = "Pneumatic tube segment (legacy)", | ||||||
|  | 				after_place_node = function(pos) | ||||||
|  | 					pipeworks.scan_for_tube_objects(pos) | ||||||
|  | 					if minetest.registered_nodes[name.."_compatibility"].after_place_node_ then | ||||||
|  | 						minetest.registered_nodes[name.."_compatibility"].after_place_node_(pos) | ||||||
|  | 					end | ||||||
|  | 				end, | ||||||
| 				groups = {not_in_creative_inventory = 1, tube_to_update = 1}, | 				groups = {not_in_creative_inventory = 1, tube_to_update = 1}, | ||||||
| 				tube = {connect_sides = {front = 1, back = 1, left = 1, right = 1, top = 1, bottom = 1}}, | 				tube = {connect_sides = {front = 1, back = 1, left = 1, right = 1, top = 1, bottom = 1}}, | ||||||
| 				drop = name.."_1", | 				drop = name.."_1", | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user