From a5ee9cd03e75f28c333d1ee7d6a933c7ebbee873 Mon Sep 17 00:00:00 2001 From: Lacyway <20912169+Lacyway@users.noreply.github.com> Date: Fri, 14 Jun 2024 12:54:06 +0200 Subject: [PATCH] Fix build error --- Fika.Core/Coop/PacketHandlers/PacketReceiver.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Fika.Core/Coop/PacketHandlers/PacketReceiver.cs b/Fika.Core/Coop/PacketHandlers/PacketReceiver.cs index 732929eb..2a89b9f1 100644 --- a/Fika.Core/Coop/PacketHandlers/PacketReceiver.cs +++ b/Fika.Core/Coop/PacketHandlers/PacketReceiver.cs @@ -104,7 +104,8 @@ protected void Update() { for (int i = 0; i < healthPackets; i++) { - player.HandleDamagePacket(DamagePackets.Dequeue()); + DamagePacket packet = DamagePackets.Dequeue(); + player.HandleDamagePacket(ref packet); } } int inventoryPackets = InventoryPackets.Count;