mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 01:05:48 +01:00 
			
		
		
		
	Fix texture packs showing as "Nil (enabled)" in Content tab
Fixes #12285
This commit is contained in:
		@@ -82,9 +82,9 @@ local function load_texture_packs(txtpath, retval)
 | 
			
		||||
			local conf = Settings(path .. "texture_pack.conf")
 | 
			
		||||
			local enabled = path == current_texture_path
 | 
			
		||||
 | 
			
		||||
			local title = conf:get("title")
 | 
			
		||||
			-- list_* is only used if non-nil, else the regular versions are used.
 | 
			
		||||
			local title = conf:get("title") or item
 | 
			
		||||
 | 
			
		||||
			-- list_* is only used if non-nil, else the regular versions are used.
 | 
			
		||||
			retval[#retval + 1] = {
 | 
			
		||||
				name = item,
 | 
			
		||||
				title = title,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user