From 077248334a22e58782c2033b53a31f27f637d655 Mon Sep 17 00:00:00 2001 From: Adam Scoble Date: Fri, 10 May 2024 14:45:25 +1000 Subject: [PATCH] Hotfix: fixed call to GetModMonetizationTeam during every AddMod/EditMod --- .../ModIO.Implementation/Classes/ModIOUnityImplementation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/ModIO.Implementation/Classes/ModIOUnityImplementation.cs b/Runtime/ModIO.Implementation/Classes/ModIOUnityImplementation.cs index e43ac86..8470a7b 100644 --- a/Runtime/ModIO.Implementation/Classes/ModIOUnityImplementation.cs +++ b/Runtime/ModIO.Implementation/Classes/ModIOUnityImplementation.cs @@ -2209,7 +2209,7 @@ public static async void EditModProfile(ModProfileDetails modDetails, static async Task ValidateModProfileMarketplaceTeam(ModProfileDetails modDetails) { // If not setting monetization to live, we don't need to validate that a marketplace team has been setup - if (modDetails.monetizationOptions.HasValue && modDetails.monetizationOptions.Value.HasFlag(MonetizationOption.Live)) + if (!modDetails.monetizationOptions.HasValue || modDetails.monetizationOptions.Value == MonetizationOption.None) { return ResultBuilder.Success; }