Allow rs.version to be a double

This allows sub-versions of the same RS revision
This commit is contained in:
Adam
2021-05-26 19:08:30 -04:00
parent 5bd8932f8e
commit 991e8fda50
4 changed files with 4 additions and 12 deletions

View File

@@ -39,7 +39,6 @@ import net.runelite.cache.fs.Archive;
import net.runelite.cache.fs.Store;
import net.runelite.cache.updater.beans.CacheEntry;
import net.runelite.cache.updater.beans.IndexEntry;
import net.runelite.http.api.RuneLiteAPI;
import net.runelite.protocol.api.login.HandshakeResponseType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -63,6 +62,9 @@ public class CacheUpdater implements CommandLineRunner
@Value("${minio.bucket}")
private String minioBucket;
@Value("${rs.version}")
private int rsVersion;
@Autowired
public CacheUpdater(
@Qualifier("Runelite Cache SQL2O") Sql2o sql2o,
@@ -75,8 +77,6 @@ public class CacheUpdater implements CommandLineRunner
public void update() throws IOException, InvalidEndpointException, InvalidPortException, InterruptedException
{
int rsVersion = RuneLiteAPI.getRsVersion();
try (Connection con = sql2o.beginTransaction())
{
CacheDAO cacheDao = new CacheDAO();