Changes

no edit summary
Line 221: Line 221:  
end
 
end
 
local api_id = self:api_id()
 
local api_id = self:api_id()
if api_id then
+
if api_id ~= nil then
 
return Formatting:equipment_card(api_id, self:asset_name())
 
return Formatting:equipment_card(api_id, self:asset_name())
elseif api_id == false then
+
    elseif self._item then
         return Formatting:equipment_card(api_id, self:asset_name())
+
         return Formatting:equipment_card(false, self:asset_name())
 
     end
 
     end
return self._card
   
end
 
end
  
cssedit, gkautomate
6,928

edits