Fix obsolete warnings

This commit is contained in:
Haselnussbomber 2025-10-18 01:10:35 +02:00
parent 878080d660
commit 68c02caf37
No known key found for this signature in database
GPG key ID: BB905BB49E7295D1

View file

@ -212,7 +212,7 @@ internal unsafe class RecipeData : IInternalDisposableService
_ => default, _ => default,
}; };
if (PlayerState.Instance()->UnlockedSecretRecipeBooksBitmask.TryCheckBitInSpan(bitIndex, out var result) && result) if (PlayerState.Instance()->UnlockedSecretRecipeBooksBitArray.Get(bitIndex))
{ {
secretRecipeBookUnlocked = true; secretRecipeBookUnlocked = true;
break; break;
@ -254,15 +254,15 @@ internal unsafe class RecipeData : IInternalDisposableService
} }
} }
if (this.cachedUnlockedSecretRecipeBooks == null || !PlayerState.Instance()->UnlockedSecretRecipeBooksBitmask.SequenceEqual(this.cachedUnlockedSecretRecipeBooks)) if (this.cachedUnlockedSecretRecipeBooks == null || !PlayerState.Instance()->UnlockedSecretRecipeBooks.SequenceEqual(this.cachedUnlockedSecretRecipeBooks))
{ {
this.cachedUnlockedSecretRecipeBooks = PlayerState.Instance()->UnlockedSecretRecipeBooksBitmask.ToArray(); this.cachedUnlockedSecretRecipeBooks = PlayerState.Instance()->UnlockedSecretRecipeBooks.ToArray();
changed |= true; changed |= true;
} }
if (this.cachedUnlockLinks == null || !UIState.Instance()->UnlockLinkBitmask.SequenceEqual(this.cachedUnlockLinks)) if (this.cachedUnlockLinks == null || !UIState.Instance()->UnlockLinks.SequenceEqual(this.cachedUnlockLinks))
{ {
this.cachedUnlockLinks = UIState.Instance()->UnlockLinkBitmask.ToArray(); this.cachedUnlockLinks = UIState.Instance()->UnlockLinks.ToArray();
changed |= true; changed |= true;
} }