Skip to content

Commit

Permalink
Remove workaround for broken CSP build, targeted client messages are …
Browse files Browse the repository at this point in the history
…working properly now
  • Loading branch information
compujuckel committed Oct 7, 2023
1 parent 1da5703 commit 15b7b59
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions AssettoServer/Network/CSPClientMessageHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,8 @@ private void OnLuaMessage(ACTcpClient sender, PacketReader reader, CSPClientMess

var clientMessage = reader.ReadPacket<CSPClientMessage>();
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;

Expand Down

0 comments on commit 15b7b59

Please sign in to comment.