mirror of
				https://github.com/minetest-mods/3d_armor.git
				synced 2025-10-31 04:45:32 +01:00 
			
		
		
		
	Fix nil value tiles exception, second attempt.
This commit is contained in:
		| @@ -29,9 +29,10 @@ armor_api.get_wielded_item_texture = function(self, player) | |||||||
| 	end | 	end | ||||||
| 	local texture = minetest.registered_items[item].inventory_image | 	local texture = minetest.registered_items[item].inventory_image | ||||||
| 	if texture == "" then | 	if texture == "" then | ||||||
| 		if minetest.registered_items[item].tiles[1] then | 		if not minetest.registered_items[item].tiles then | ||||||
| 			texture = minetest.registered_items[item].tiles[1] | 			return nil	 | ||||||
| 		end | 		end | ||||||
|  | 		texture = minetest.registered_items[item].tiles[1] | ||||||
| 	end | 	end | ||||||
| 	return texture | 	return texture | ||||||
| end | end | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user