Skip to content

Commit

Permalink
Fix VersionChecker for 1.12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Lezurex committed Mar 14, 2021
1 parent 03d4439 commit 4715da4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private void checkForUpdates() {
if(Minecraft.getMinecraft().getVersion().contains("1.8"))
downloadUrl = jsonElement.getAsJsonObject().get("assets").getAsJsonArray().get(0).getAsJsonObject().get("browser_download_url").getAsString();
else {
if(jsonElement.getAsJsonObject().get("assets").getAsJsonArray().get(2).getAsJsonObject() == null) {
if(jsonElement.getAsJsonObject().get("assets").getAsJsonArray().get(1).getAsJsonObject() == null) {
LabyMod.getInstance().displayMessageInChat(StatsAddon.getInstance().getPrefix() + "\u00A77 Momentan ist \u00A7ckeine neue Version \u00A77für die 1.12.2 verfügbar\u00A78.");
return;
} else
Expand Down

0 comments on commit 4715da4

Please sign in to comment.