Changes

Fix icon when slot disabled with no equipment
Line 391: Line 391:  
equipment_type = false
 
equipment_type = false
 
end
 
end
 
+
if icon ~= "" then
icon = Formatting:format_image{Formatting:format_equipment_icon(icon), caption = Formatting:format_equipment_type(equipment_type)}
+
icon = Formatting:format_image{Formatting:format_equipment_icon(icon), caption = Formatting:format_equipment_type(equipment_type)}
 +
end
 
end
 
end
 
table.insert(slots, format{self._slot_template,  
 
table.insert(slots, format{self._slot_template,  
Anonymous user