From 4fe0720070dc3ed7a2ea14c6cadeef4d7f0d4c39 Mon Sep 17 00:00:00 2001 From: mischa Date: Sun, 7 Apr 2024 23:40:00 +0800 Subject: [PATCH] fix(LatencySimulation): unreliable now sends over the correct channel --- Assets/Mirror/Transports/Latency/LatencySimulation.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Mirror/Transports/Latency/LatencySimulation.cs b/Assets/Mirror/Transports/Latency/LatencySimulation.cs index 894d3fe0f..c286326a7 100644 --- a/Assets/Mirror/Transports/Latency/LatencySimulation.cs +++ b/Assets/Mirror/Transports/Latency/LatencySimulation.cs @@ -258,7 +258,7 @@ public override void ClientLateUpdate() #endif { // send and eat - wrap.ClientSend(new ArraySegment(message.bytes), Channels.Reliable); + wrap.ClientSend(new ArraySegment(message.bytes), Channels.Unreliable); unreliableClientToServer.RemoveAt(i); --i; } @@ -303,7 +303,7 @@ public override void ServerLateUpdate() #endif { // send and eat - wrap.ServerSend(message.connectionId, new ArraySegment(message.bytes), Channels.Reliable); + wrap.ServerSend(message.connectionId, new ArraySegment(message.bytes), Channels.Unreliable); unreliableServerToClient.RemoveAt(i); --i; }