Fixed stack alignment.
This commit is contained in:
parent
accb6218ee
commit
8c20e1de54
|
|
@ -13,8 +13,8 @@ for _,assetType in pairs(Enum.AssetType:GetEnumItems()) do
|
|||
assetTypes[assetType.Value] = assetType.Name
|
||||
end
|
||||
|
||||
function AssetUtil:SafeCall(class,method,...)
|
||||
local success,response
|
||||
function AssetUtil:SafeCall(class, method, ...)
|
||||
local success, response
|
||||
local tries = 0
|
||||
|
||||
while not success do
|
||||
|
|
@ -26,6 +26,7 @@ function AssetUtil:SafeCall(class,method,...)
|
|||
response = false
|
||||
else
|
||||
tries = tries + 1
|
||||
|
||||
if tries > self.NUM_FETCH_RETRIES then
|
||||
return false
|
||||
end
|
||||
|
|
@ -63,12 +64,14 @@ function AssetUtil:RequestImage(assetId)
|
|||
if assetType == "Image" then -- No transformation needed!
|
||||
result = "rbxassetid://" .. assetId
|
||||
elseif assetType == "TeeShirt" then
|
||||
local imported,shirtGraphic = self:Import(assetId)
|
||||
local imported, shirtGraphic = self:Import(assetId)
|
||||
|
||||
if imported then
|
||||
result = shirtGraphic.Graphic
|
||||
end
|
||||
elseif assetType == "Decal" or assetType == "Face" then
|
||||
local imported, decal = self:Import(assetId)
|
||||
|
||||
if imported then
|
||||
result = decal.Texture
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue