fix asset type when checking if a mod asset exists
This commit is contained in:
parent
cb11f1e2ca
commit
f8b62e271e
|
@ -75,7 +75,7 @@ namespace StardewModdingAPI.Framework.ContentManagers
|
||||||
// custom asset from a loader
|
// custom asset from a loader
|
||||||
string locale = this.GetLocale();
|
string locale = this.GetLocale();
|
||||||
IAssetInfo info = new AssetInfo(locale, assetName, typeof(T), this.AssertAndNormalizeAssetName);
|
IAssetInfo info = new AssetInfo(locale, assetName, typeof(T), this.AssertAndNormalizeAssetName);
|
||||||
AssetOperationGroup? operations = this.Coordinator.GetAssetOperations<object>(info);
|
AssetOperationGroup? operations = this.Coordinator.GetAssetOperations<T>(info);
|
||||||
if (operations?.LoadOperations.Count > 0)
|
if (operations?.LoadOperations.Count > 0)
|
||||||
{
|
{
|
||||||
if (!this.AssertMaxOneRequiredLoader(info, operations.LoadOperations, out string? error))
|
if (!this.AssertMaxOneRequiredLoader(info, operations.LoadOperations, out string? error))
|
||||||
|
|
Loading…
Reference in New Issue