Skip to content

Commit

Permalink
Pre-launch entrypoint once again
Browse files Browse the repository at this point in the history
Moved outside a mixin plugin so that mixins can apply correctly to mc classes that get referenced from pre-launch entrypoints.
  • Loading branch information
Su5eD committed Oct 22, 2023
1 parent 67d0e22 commit 83da997
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import cpw.mods.modlauncher.api.ITransformer;
import cpw.mods.modlauncher.serviceapi.ILaunchPluginService;
import dev.su5ed.sinytra.connector.loader.ConnectorEarlyLoader;
import net.minecraftforge.fml.loading.FMLLoader;
import net.minecraftforge.fml.loading.LoadingModList;
import net.minecraftforge.fml.unsafe.UnsafeHacks;

Expand All @@ -26,7 +27,17 @@ public String name() {
}

@Override
public void initialize(IEnvironment environment) {}
public void initialize(IEnvironment environment) {
Runnable original = FMLLoader.progressWindowTick;
FMLLoader.progressWindowTick = () -> {
ConnectorEarlyLoader.setup();
FabricMixinBootstrap.init();
FabricASMFixer.injectMinecraftModuleReader();

FMLLoader.progressWindowTick = original;
original.run();
};
}

@SuppressWarnings("unchecked")
@Override
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion src/mod/resources/connectormod.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"refmap": "mixins.connectormod.refmap.json",
"package": "dev.su5ed.sinytra.connector.mod.mixin",
"compatibilityLevel": "JAVA_17",
"plugin": "dev.su5ed.sinytra.connector.mod.ConnectorBootstrap",
"mixins": [
"AttributeSupplierAccessor",
"ForgeHooksMixin",
Expand Down

0 comments on commit 83da997

Please sign in to comment.