Fixed stack alignment.
This commit is contained in:
parent
accb6218ee
commit
8c20e1de54
|
|
@ -26,6 +26,7 @@ function AssetUtil:SafeCall(class,method,...)
|
||||||
response = false
|
response = false
|
||||||
else
|
else
|
||||||
tries = tries + 1
|
tries = tries + 1
|
||||||
|
|
||||||
if tries > self.NUM_FETCH_RETRIES then
|
if tries > self.NUM_FETCH_RETRIES then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
@ -64,11 +65,13 @@ function AssetUtil:RequestImage(assetId)
|
||||||
result = "rbxassetid://" .. assetId
|
result = "rbxassetid://" .. assetId
|
||||||
elseif assetType == "TeeShirt" then
|
elseif assetType == "TeeShirt" then
|
||||||
local imported, shirtGraphic = self:Import(assetId)
|
local imported, shirtGraphic = self:Import(assetId)
|
||||||
|
|
||||||
if imported then
|
if imported then
|
||||||
result = shirtGraphic.Graphic
|
result = shirtGraphic.Graphic
|
||||||
end
|
end
|
||||||
elseif assetType == "Decal" or assetType == "Face" then
|
elseif assetType == "Decal" or assetType == "Face" then
|
||||||
local imported, decal = self:Import(assetId)
|
local imported, decal = self:Import(assetId)
|
||||||
|
|
||||||
if imported then
|
if imported then
|
||||||
result = decal.Texture
|
result = decal.Texture
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue