Fixed stack alignment.

This commit is contained in:
Max G 2020-01-06 03:11:05 -06:00 committed by GitHub
parent accb6218ee
commit 8c20e1de54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 14 deletions

View File

@ -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