So I had this code that would just check if the player had high enough keycard permissions to open the door/locker/gen, I had these functions ```csharp
public static bool HasKeycardPermission(DoorVariant door, Player player)
{
foreach (ItemBase item in player.ReferenceHub.inventory.UserInventory.Items.Values.ToList())
if (door.RequiredPermissions.CheckPermissions(item, player.ReferenceHub))
return true;
return false;
}
public static bool HasKeycardPermission(LabApi.Features.Wrappers.LockerChamber chamber, Player player)
{
foreach (ItemBase item in player.ReferenceHub.inventory.UserInventory.Items.Values.ToList())
if (item is InventorySystem.Items.Keycards.KeycardItem keycardItem)
return keycardItem.Permissions.HasFlagFast(chamber.RequiredPermissions);
return false;
}
public static bool HasKeycardPermission(Scp079Generator generator, Player player)
{
foreach (ItemBase item in player.ReferenceHub.inventory.UserInventory.Items.Values.ToList())
if (item is InventorySystem.Items.Keycards.KeycardItem keycardItem)
return keycardItem.Permissions.HasFlagFast(generator.RequiredPermissions);
return false;
}```But with the new 0.6.0 LabAPI update, they are broken and I've been trying to find how to fix it for half an hour now, so I'm assuming it's just something really simple and I'm just a little special lol