From 15b7b597f24575cc64eccdb98ab99dae48ff311e Mon Sep 17 00:00:00 2001 From: compujuckel Date: Sat, 7 Oct 2023 14:07:10 +0200 Subject: [PATCH] Remove workaround for broken CSP build, targeted client messages are working properly now --- AssettoServer/Network/CSPClientMessageHandler.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/AssettoServer/Network/CSPClientMessageHandler.cs b/AssettoServer/Network/CSPClientMessageHandler.cs index d8de367e..9fd00227 100644 --- a/AssettoServer/Network/CSPClientMessageHandler.cs +++ b/AssettoServer/Network/CSPClientMessageHandler.cs @@ -111,10 +111,8 @@ private void OnLuaMessage(ACTcpClient sender, PacketReader reader, CSPClientMess var clientMessage = reader.ReadPacket(); clientMessage.SessionId = sender.SessionId; - // TODO CSPClientMessageType.LuaMessageTargeted seems to not work with CSP 0.1.80-preview386, so change them to LuaMessage instead - clientMessage.Type = CSPClientMessageType.LuaMessage; - // clientMessage.Type = IsTargeted(type) ? CSPClientMessageType.LuaMessageTargeted : CSPClientMessageType.LuaMessage; - // clientMessage.TargetSessionId = sessionId; + clientMessage.Type = IsTargeted(type) ? CSPClientMessageType.LuaMessageTargeted : CSPClientMessageType.LuaMessage; + clientMessage.TargetSessionId = sessionId; clientMessage.LuaType = luaPacketType; clientMessage.Udp = udp;