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.
This commit is contained in:
ImNoOSRS
2020-11-11 18:46:31 +01:00
committed by GitHub
parent e75b15e92b
commit 0990182ac4

View File

@@ -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();
}