mirror of
				https://github.com/mt-mods/xcompat.git
				synced 2025-10-31 08:15:28 +01:00 
			
		
		
		
	register tests only if enabled (#38)
Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
This commit is contained in:
		
							
								
								
									
										5
									
								
								mtt.lua
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								mtt.lua
									
									
									
									
									
								
							| @@ -4,4 +4,7 @@ mtt.emerge_area({ x=0, y=0, z=0 }, { x=10, y=10, z=10 }) | ||||
|  | ||||
| -- check nodelist | ||||
| local mtt_nodelist = minetest.settings:get("mtt_nodelist") | ||||
| mtt.validate_nodenames(minetest.get_modpath("xcompat") .. "/test/nodelist/" .. mtt_nodelist) | ||||
| if mtt_nodelist then | ||||
|     -- nodelist specified, check if all the required nodes are present | ||||
|     mtt.validate_nodenames(minetest.get_modpath("xcompat") .. "/test/nodelist/" .. mtt_nodelist) | ||||
| end | ||||
		Reference in New Issue
	
	Block a user