Added the self updater to forge and fixed standalone jar

This commit is contained in:
coolGi
2022-10-21 17:32:25 +10:30
parent 9742a2146a
commit 14fb775212
3 changed files with 6 additions and 3 deletions
@@ -53,7 +53,6 @@ public class FabricMain
public static void postInit() {
LOGGER.info("Post-Initializing Mod");
FabricDependencySetup.runDelayedSetup();
LodCommonMain.initConfig();
if (Config.Client.Graphics.FogQuality.disableVanillaFog.get() && SingletonInjector.INSTANCE.get(IModChecker.class).isModLoaded("bclib"))
ModAccessorInjector.INSTANCE.get(IBCLibAccessor.class).setRenderCustomFog(false); // Remove BCLib's fog
@@ -87,5 +86,9 @@ public class FabricMain
LOGGER.info(ModInfo.READABLE_NAME + " Initialized");
DhApiEventInjector.INSTANCE.fireAllEvents(DhApiAfterDhInitEvent.class, null);
// Init config
// The reason im initialising in this rather than the post init process is cus im using this for the auto updater
LodCommonMain.initConfig();
}
}
@@ -41,7 +41,7 @@ public class MixinMinecraft
}
}
@Inject(at = @At("HEAD"), method = "close()V")
@Inject(at = @At("HEAD"), method = "close()V", remap = false)
public void close(CallbackInfo ci) {
SelfUpdater.onClose();
}