Skip to content

Commit

Permalink
Fixed AI Expension icon bug
Browse files Browse the repository at this point in the history
  • Loading branch information
andev0 committed Sep 10, 2024
1 parent 511f1df commit 7669c4f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/Tools/SatisfactoryIconExporter/Exporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ function getResultingPath(originalPath: string): string | undefined

let { path, name } = match.groups!;

return `${path.replace("UI/", "")}${name}.png`;

path = path.replace("_UI/", "");
path = path.replace("UI/", "");
return `${path}${name}.png`;
}

return undefined;
Expand Down
3 changes: 2 additions & 1 deletion src/Tools/SatisfactoryRecipeExporter/Exporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ let descriptorsMap = new Map<string, Descriptor>(satisfactory
+ `Id: ${docsDescriptor.ClassName}`);
}

iconPath = match.groups!.path.replace("UI/", "");
iconPath = match.groups!.path.replace("_UI/", "");
iconPath = iconPath.replace("UI/", "");
iconName = match.groups!.name;
}

Expand Down

0 comments on commit 7669c4f

Please sign in to comment.