Skip to content

Commit

Permalink
Fix a bug that prevents the editor of reading unit blueprints (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Garanas authored Jul 16, 2023
1 parent 1ec07bd commit 63ff568
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public static UnitSource LoadUnitSource(string LocalPath)
return CreateEmptyUnit(LocalPath);
}

BluePrintString = BluePrintString.Replace("UnitBlueprint {", "UnitBlueprint = {");
BluePrintString = BluePrintString.Replace("UnitBlueprint", "UnitBlueprint =");

string[] PathSplit = LocalPath.Split('/');
GameObject NewUnit = new GameObject(PathSplit[PathSplit.Length - 1].Replace(".bp", ""));
Expand Down

0 comments on commit 63ff568

Please sign in to comment.