From d29c9b472794b8c87cd67d604664db07b6cb8ef1 Mon Sep 17 00:00:00 2001 From: Rug Date: Sat, 27 Apr 2024 22:53:10 -0700 Subject: [PATCH] Fixed an issue where Lobby and Player data could not be set in the LobbyCreated callback --- MyceliumNetworkingForCW/MyceliumNetwork.cs | 2 +- MyceliumNetworkingForCW/ts-assets/CHANGELOG.md | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/MyceliumNetworkingForCW/MyceliumNetwork.cs b/MyceliumNetworkingForCW/MyceliumNetwork.cs index 0a864b6..f8e7d9a 100644 --- a/MyceliumNetworkingForCW/MyceliumNetwork.cs +++ b/MyceliumNetworkingForCW/MyceliumNetwork.cs @@ -141,6 +141,7 @@ static void OnLobbyCreated(LobbyCreated_t param) if(param.m_eResult == EResult.k_EResultOK) { Lobby = new CSteamID(param.m_ulSteamIDLobby); + InLobby = true; RefreshPlayerList(); @@ -590,7 +591,6 @@ static void HandleMessage(Message message, CSteamID sender) { var handlers = GetMessageHandlers(message.ModID, message.MethodName); - bool handled = false; foreach(var messageHandler in handlers) diff --git a/MyceliumNetworkingForCW/ts-assets/CHANGELOG.md b/MyceliumNetworkingForCW/ts-assets/CHANGELOG.md index 87aeb9c..013eebd 100644 --- a/MyceliumNetworkingForCW/ts-assets/CHANGELOG.md +++ b/MyceliumNetworkingForCW/ts-assets/CHANGELOG.md @@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 1.0.12 +- Fixed an issue where Lobby and Player data could not be set in the LobbyCreated callback + ## 1.0.11 - Added logging for dropped RPCs - More detailed RPC fail exception logging