Skip to content

Commit

Permalink
only get the last path of PathString in TemplateConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
HSGamer committed Oct 14, 2023
1 parent 25dee21 commit aef5967
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -84,7 +84,7 @@ private void setup(File file) {
config.setup();
for (PathString pathString : config.getKeys(false)) {
Map<String, Object> values = PathStringUtil.asStringMap(config.getNormalizedValues(pathString, false));
String key = PathStringUtil.asString(pathString);
String key = pathString.getLastPath();
if (includeMenuInTemplate) {
key = BetterGUI.getInstance().getMainConfig().getFileName(templateFolder, file) + "/" + key;
}
Expand Down

0 comments on commit aef5967

Please sign in to comment.