From 3e7f96b9f2a5b0dc9064f1e9ea53bc7301eae430 Mon Sep 17 00:00:00 2001 From: Luke Stampfli Date: Fri, 25 Sep 2020 09:59:25 +0100 Subject: [PATCH] fix: NetworkConfig exclude registered scenes list from hash if scene managment is disabled Currently if 'Enable Scene Management' is set to false MLAPI prints a NetworkConfiguration mismatch warning on connection if the server and client have a different registered scenes list. --- MLAPI/Configuration/NetworkConfig.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MLAPI/Configuration/NetworkConfig.cs b/MLAPI/Configuration/NetworkConfig.cs index 8d5b5cf16e..72480159bc 100644 --- a/MLAPI/Configuration/NetworkConfig.cs +++ b/MLAPI/Configuration/NetworkConfig.cs @@ -344,7 +344,7 @@ public ulong GetConfig(bool cache = true) writer.WriteUInt16Packed(ProtocolVersion); writer.WriteString(MLAPIConstants.MLAPI_PROTOCOL_VERSION); - if (!AllowRuntimeSceneChanges) + if (EnableSceneManagement && !AllowRuntimeSceneChanges) { for (int i = 0; i < RegisteredScenes.Count; i++) {