Merge pull request #3 from DokaDoka/patch-1

fix(resource/streaming): use correct variable names
This commit is contained in:
Linden
2021-11-18 01:15:15 +11:00
committed by GitHub

View File

@@ -44,7 +44,7 @@ function lib.requestStreamedTextureDict(dict)
if HasStreamedTextureDictLoaded(dict) then return true end if HasStreamedTextureDictLoaded(dict) then return true end
RequestStreamedTextureDict(dict) RequestStreamedTextureDict(dict)
if hasLoaded(HasStreamedTextureDictLoaded, dict) then return true end if hasLoaded(HasStreamedTextureDictLoaded, dict) then return true end
print(('Unable to load texture dict after 20 ticks (%s)'):format(name)) print(('Unable to load texture dict after 20 ticks (%s)'):format(dict))
end end
---@param fxName string ---@param fxName string
@@ -53,5 +53,5 @@ function lib.requestNamedPtfxAsset(fxName)
if HasNamedPtfxAssetLoaded(fxName) then return true end if HasNamedPtfxAssetLoaded(fxName) then return true end
RequestNamedPtfxAsset(fxName) RequestNamedPtfxAsset(fxName)
if hasLoaded(RequestNamedPtfxAsset, fxName) then return true end if hasLoaded(RequestNamedPtfxAsset, fxName) then return true end
print(('Unable to load named ptfx after 20 ticks (%s)'):format(name)) print(('Unable to load named ptfx after 20 ticks (%s)'):format(fxName))
end end