Skip to content

Commit

Permalink
Update references and small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed Jun 7, 2024
1 parent 6298711 commit 4a43a0a
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Fika.Core/Coop/GameMode/CoopGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ private async Task<LocalPlayer> 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;
Expand Down
4 changes: 4 additions & 0 deletions Fika.Core/Coop/Players/CoopPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
}
Expand Down
Binary file modified References/spt-common.dll
Binary file not shown.
Binary file modified References/spt-core.dll
Binary file not shown.
Binary file modified References/spt-custom.dll
Binary file not shown.
Binary file modified References/spt-debugging.dll
Binary file not shown.
Binary file modified References/spt-reflection.dll
Binary file not shown.
Binary file modified References/spt-singleplayer.dll
Binary file not shown.

0 comments on commit 4a43a0a

Please sign in to comment.