mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
make the update checker run later on fabric
This commit is contained in:
5 files changed
+14
-5
No files matched your search
@@ -127,12 +127,16 @@ public abstract class CarbonChatInternal implements CarbonChat {
|
||||
this.channelRegistry().loadConfigChannels(this.carbonMessages);
|
||||
|
||||
this.messagingManager.get();
|
||||
}
|
||||
|
||||
CompletableFuture.runAsync(() -> {
|
||||
if (!this.injector.getInstance(ConfigManager.class).primaryConfig().updateChecker()) {
|
||||
return;
|
||||
protected final void checkVersion() {
|
||||
if (!this.injector.getInstance(ConfigManager.class).primaryConfig().updateChecker()) {
|
||||
return;
|
||||
}
|
||||
CompletableFuture.runAsync(() -> new UpdateChecker(this.logger).checkVersion()).whenComplete(($, thr) -> {
|
||||
if (thr != null) {
|
||||
this.logger.warn("Exception fetching version information", thr);
|
||||
}
|
||||
new UpdateChecker(this.logger).checkVersion();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user