Skip to content

Commit

Permalink
fix custom relics bug, trim login and secret after loading
Browse files Browse the repository at this point in the history
  • Loading branch information
avolny committed Oct 13, 2020
1 parent 871333c commit e58fcb2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/str_exporter/SlayTheRelicsExporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ public static void initialize()
String data = new String(Files.readAllBytes(path));
List<String> lines = Files.readAllLines(path);

login = lines.get(0).split(":")[1];
secret = lines.get(1).split(":")[1];
login = lines.get(0).split(":")[1].toLowerCase().trim();
secret = lines.get(1).split(":")[1].trim();

logger.info("slaytherelics_config.txt was succesfully loaded");

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/str_exporter/TipsJSONBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ private void buildCustomTipsFromApi(StringBuilder sb, boolean nonzeroOrbs) {
result = "";
} finally {
if (nonzeroOrbs && !result.isEmpty())
sb_safe.append(",");
sb.append(",");

sb.append(result);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/ModTheSpire.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Slay the Relics Exporter",
"author_list": ["LordAddy"],
"description": "This mod exports data to Slay the Relics Twitch extension. \n\nThis mod in combination with the extension displays deck view and tooltips for viewers on stream for relics, potions, player/monster powers, orbs, even some custom tooltips from some mods. \nThe viewers just need to hover over the respective item just as if they were in the game themselves.\n\nSee the extension config on Twitch for setup instructions (search 'Slay the Relics').",
"version": "1.2.0",
"version": "1.2.2",
"sts_version": "07-30-2020",
"mts_version": "3.15.0",
"dependencies": ["basemod"]
Expand Down

0 comments on commit e58fcb2

Please sign in to comment.