diff --git a/src/main/java/str_exporter/SlayTheRelicsExporter.java b/src/main/java/str_exporter/SlayTheRelicsExporter.java index 091dd1f..af81530 100644 --- a/src/main/java/str_exporter/SlayTheRelicsExporter.java +++ b/src/main/java/str_exporter/SlayTheRelicsExporter.java @@ -112,8 +112,8 @@ public static void initialize() String data = new String(Files.readAllBytes(path)); List 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"); diff --git a/src/main/java/str_exporter/TipsJSONBuilder.java b/src/main/java/str_exporter/TipsJSONBuilder.java index b6d4e34..a33c0fc 100644 --- a/src/main/java/str_exporter/TipsJSONBuilder.java +++ b/src/main/java/str_exporter/TipsJSONBuilder.java @@ -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); } diff --git a/src/main/resources/ModTheSpire.json b/src/main/resources/ModTheSpire.json index 9aa6466..f6f9a00 100644 --- a/src/main/resources/ModTheSpire.json +++ b/src/main/resources/ModTheSpire.json @@ -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"]