mcp-unity
mcp-unity copied to clipboard
False positive when detecting multiplayer play mode clone instance
In the Editor\Utils\McpUtils.cs, line ~842
if (libraryPath.Contains("VP") && libraryPath.Contains("Library"))
Gives false positive if the path has those strings anywhere in them, which means if you have a project folder called "MyProjectMVP" or "CountyLibraryApp" it will now return true. Suggested fix is something like:
if ((libraryPath.Contains("/VP/") || libraryPath.Contains("\\VP\\")) && (libraryPath.Contains("/Library/") || libraryPath.Contains("\\Library\\"))
This is a good report. Thank you, will push a fix soon
I pushed a new fix for this issue. @kginstructor can you confirm that fixed in your end?
That fixed it, thank you!