Skip to content

Commit 6967621

Browse files
fix
Failing on hash mismatch.
1 parent fec4232 commit 6967621

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

com.unity.netcode.gameobjects/Editor/NetworkManagerHelper.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,14 @@ private static bool IsActiveSceneInBuildList()
134134
{
135135
Debug.LogError($"Active scene {activeScene.name} with path ({activeScene.path}) is potentially a duplicate of " +
136136
$"scene {sceneAsset.name} with a path of ({scene.path})! Excluding from automatically adding to the scenes in build list!");
137-
// Exit as if it did find a perfect match
138-
return true;
139137
}
138+
else
139+
{
140+
Debug.LogError($"Active scene {activeScene.name} was found but the active scene asset hash value ({activeSceneHash}) was " +
141+
$"not the same as the the one in the scenes in build list ({sceneAssetHash})! Excluding from automatically adding to the scenes in build list!");
142+
}
143+
// Exit as if it did find a perfect match
144+
return true;
140145
}
141146
}
142147
return false;

0 commit comments

Comments
 (0)