Skip to content

Commit 3e7f96b

Browse files
author
Luke Stampfli
committed
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.
1 parent 65c9075 commit 3e7f96b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MLAPI/Configuration/NetworkConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ public ulong GetConfig(bool cache = true)
344344
writer.WriteUInt16Packed(ProtocolVersion);
345345
writer.WriteString(MLAPIConstants.MLAPI_PROTOCOL_VERSION);
346346

347-
if (!AllowRuntimeSceneChanges)
347+
if (EnableSceneManagement && !AllowRuntimeSceneChanges)
348348
{
349349
for (int i = 0; i < RegisteredScenes.Count; i++)
350350
{

0 commit comments

Comments
 (0)