From 0990182ac4babea26e33ecdce5a4e9f129b0e0ad Mon Sep 17 00:00:00 2001 From: ImNoOSRS <69985903+ImNoOSRS@users.noreply.github.com> Date: Wed, 11 Nov 2020 18:46:31 +0100 Subject: [PATCH] HTTP-API: Ignore snapshots for the runelite API. As of now runelite doesnt support this link: https://api.runelite.net/runelite-1.6.33-SNAPSHOT/worlds.js When ignoring the SNAPSHOT version it takes the heighest version which isnt a snapshot. --- http-api/src/main/java/net/runelite/http/api/RuneLiteAPI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http-api/src/main/java/net/runelite/http/api/RuneLiteAPI.java b/http-api/src/main/java/net/runelite/http/api/RuneLiteAPI.java index a92cd5bb59..0f11fccc92 100644 --- a/http-api/src/main/java/net/runelite/http/api/RuneLiteAPI.java +++ b/http-api/src/main/java/net/runelite/http/api/RuneLiteAPI.java @@ -218,7 +218,7 @@ public class RuneLiteAPI for (int i = 0; i != versionList.getLength(); i++) { Node node = versionList.item(i); - if (node.getTextContent() != null) + if (node.getTextContent() != null && !node.getTextContent().endsWith("SNAPSHOT")) { upstreamVersion = node.getTextContent(); }