forked from mtcontrib/3d_armor
		
	Fixes Stand appending extra ".png" to texture when a "texture" attribute
is explicity set on the armor's definition.
This commit is contained in:
		
				
					committed by
					
						 stujones11
						stujones11
					
				
			
			
				
	
			
			
			
						parent
						
							4c032e8c7e
						
					
				
				
					commit
					813a88f3a1
				
			| @@ -75,8 +75,11 @@ local function update_entity(pos) | |||||||
| 					local def = stack:get_definition() or {} | 					local def = stack:get_definition() or {} | ||||||
| 					local groups = def.groups or {} | 					local groups = def.groups or {} | ||||||
| 					if groups["armor_"..element] then | 					if groups["armor_"..element] then | ||||||
| 						local texture = def.texture or item:gsub("%:", "_") |                         if def.texture then | ||||||
| 						table.insert(textures, texture..".png") |                             table.insert(textures, def.texture) | ||||||
|  | 						else | ||||||
|  |     						table.insert(textures, item:gsub("%:", "_")..".png") | ||||||
|  |                         end | ||||||
| 					end | 					end | ||||||
| 				end | 				end | ||||||
| 			end | 			end | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user