From a7a71a4651e4066a37424d07588d50338dc944f5 Mon Sep 17 00:00:00 2001 From: Makinolo Date: Tue, 28 Dec 2021 16:54:42 -0700 Subject: [PATCH] Fixes copy paste error NetIncomingMessageToPacket was overwriting the NetHandle with the value of the Target and this was making the from Handle in the messages processed by the resources to be zero. --- Client/Packets.cs | 2 +- Server/Packets.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Client/Packets.cs b/Client/Packets.cs index c3dc8c9..0439ba5 100644 --- a/Client/Packets.cs +++ b/Client/Packets.cs @@ -245,7 +245,7 @@ namespace CoopClient NetHandle = reader.ReadLong(); // Read Target - NetHandle = reader.ReadLong(); + Target = reader.ReadLong(); // Read Mod int modLength = reader.ReadInt(); diff --git a/Server/Packets.cs b/Server/Packets.cs index 19821b3..3001eea 100644 --- a/Server/Packets.cs +++ b/Server/Packets.cs @@ -228,7 +228,7 @@ namespace CoopServer NetHandle = reader.ReadLong(); // Read Target - NetHandle = reader.ReadLong(); + Target = reader.ReadLong(); // Read Mod int modLength = reader.ReadInt();