Update ItemStorage7SM.cs

This commit is contained in:
sora10pls
2023-05-20 15:17:41 -04:00
parent 302f0593e6
commit 2c0f4d0e91

View File

@@ -208,7 +208,7 @@ public bool IsLegal(InventoryType type, int itemIndex, int itemCount)
if (items.BinarySearch((ushort)itemIndex) < 0)
return false;
return Unreleased.BinarySearch((ushort)itemIndex) >= 0;
return Unreleased.BinarySearch((ushort)itemIndex) < 0;
}
public ReadOnlySpan<ushort> GetItems(InventoryType type) => type switch