diff --git a/Fika.Core/Coop/GameMode/CoopGame.cs b/Fika.Core/Coop/GameMode/CoopGame.cs index 794a9e8b..b8b9701c 100644 --- a/Fika.Core/Coop/GameMode/CoopGame.cs +++ b/Fika.Core/Coop/GameMode/CoopGame.cs @@ -409,7 +409,7 @@ private async Task CreateBot(Profile profile, Vector3 position) Bots.Add(localPlayer.ProfileId, localPlayer); } - if (profile.Info.Side == EPlayerSide.Bear || profile.Info.Side == EPlayerSide.Usec) + if (profile.Info.Side is EPlayerSide.Bear or EPlayerSide.Usec) { Slot backpackSlot = profile.Inventory.Equipment.GetSlot(EquipmentSlot.Backpack); Item backpack = backpackSlot.ContainedItem; diff --git a/Fika.Core/Coop/Players/CoopPlayer.cs b/Fika.Core/Coop/Players/CoopPlayer.cs index 92c551f3..a7439a74 100644 --- a/Fika.Core/Coop/Players/CoopPlayer.cs +++ b/Fika.Core/Coop/Players/CoopPlayer.cs @@ -931,9 +931,13 @@ public virtual void HandleCommonPacket(in CommonPlayerPacket packet) void Interact() => lootableContainer.Invoke(methodName, 0); if (packet.ContainerInteractionPacket.InteractionType == EInteractionType.Unlock) + { Interact(); + } else + { lootableContainer.StartBehaviourTimer(EFTHardSettings.Instance.DelayToOpenContainer, Interact); + } } } } diff --git a/References/spt-common.dll b/References/spt-common.dll index 85204dad..aff5d94c 100644 Binary files a/References/spt-common.dll and b/References/spt-common.dll differ diff --git a/References/spt-core.dll b/References/spt-core.dll index bffab19d..54e1af0e 100644 Binary files a/References/spt-core.dll and b/References/spt-core.dll differ diff --git a/References/spt-custom.dll b/References/spt-custom.dll index a2c6328e..89b64f01 100644 Binary files a/References/spt-custom.dll and b/References/spt-custom.dll differ diff --git a/References/spt-debugging.dll b/References/spt-debugging.dll index c2fbd4b1..f5dcda95 100644 Binary files a/References/spt-debugging.dll and b/References/spt-debugging.dll differ diff --git a/References/spt-reflection.dll b/References/spt-reflection.dll index 0aba8bfb..8b68527b 100644 Binary files a/References/spt-reflection.dll and b/References/spt-reflection.dll differ diff --git a/References/spt-singleplayer.dll b/References/spt-singleplayer.dll index 92a41dea..efee056b 100644 Binary files a/References/spt-singleplayer.dll and b/References/spt-singleplayer.dll differ