Skip to content

Commit f51a56b

Browse files
committed
AssetManaget.cs: throw "not a valid directory" error only it's not Rust OR RustStaging folder
1 parent 20686c5 commit f51a56b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/MapEditor/Managers/AssetManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static void Initialise(string bundlesRoot)
3535
return;
3636
}
3737

38-
if (!SettingsManager.RustDirectory.EndsWith("Rust"))
38+
if (!SettingsManager.RustDirectory.EndsWith("Rust") && !SettingsManager.RustDirectory.EndsWith("RustStaging"))
3939
{
4040
Debug.LogError("Not a valid Rust install directory: " + SettingsManager.RustDirectory);
4141
return;

0 commit comments

Comments
 (0)