Remove the update checker

This commit is contained in:
FalsePattern committed 2023-11-16 13:21:35 +01:00
1 parent b1cf8cbf78
commit 5317e71e44
7 files changed
+68 -459

No files matched your search

@@ -52,29 +52,8 @@ public class CommonProxy {
public void preInit(FMLPreInitializationEvent e) {
CommonEventHandlerPre.registerBus();
if (LibraryConfig.ENABLE_UPDATE_CHECKER) {
Share.LOG.info("Launching asynchronous update check.");
UpdateChecker.fetchUpdatesAsyncV2(FalsePatternLib.UPDATE_URL).thenApplyAsync(updates -> {
if (updates == null) {
updates = Collections.emptyList();
}
if (updates.isEmpty()) {
Share.LOG.info("No updates found.");
} else {
Share.LOG.info("Found {} updates.", updates.size());
for (val update : updates) {
update.log(Share.LOG);
}
}
return updates;
}).exceptionally(ex -> {
Share.LOG.error("Failed to check for updates!", ex);
return Collections.emptyList();
});
}
}
@Mod.EventHandler
public void init(FMLInitializationEvent e) {
}