V2 update checker API. No more manual bumps!

This commit is contained in:
FalsePattern committed 2023-01-17 16:54:04 +01:00
1 parent ce28e3e571
commit 6edb48be51
5 files changed
+289 -54

No files matched your search

@@ -58,7 +58,7 @@ public class CommonProxy {
CommonEventHandlerPre.registerBus();
if (LibraryConfig.ENABLE_UPDATE_CHECKER) {
Share.LOG.info("Launching asynchronous update check.");
updatesFuture = UpdateChecker.fetchUpdatesAsync(FalsePatternLib.UPDATE_URL).thenApplyAsync(updates -> {
updatesFuture = UpdateChecker.fetchUpdatesAsyncV2(FalsePatternLib.UPDATE_URL).thenApplyAsync(updates -> {
if (updates == null) {
updates = Collections.emptyList();
}