Skip to content

Commit

Permalink
Remove OptifabricMixinPlugin in favor of OptifabricSetup
Browse files Browse the repository at this point in the history
  • Loading branch information
XXMA16 committed Sep 25, 2023
1 parent 85ff607 commit a50939d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 23 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@
import net.fabricmc.loader.util.version.SemanticVersionImpl;
import net.fabricmc.loader.util.version.SemanticVersionPredicateParser;

import me.modmuss50.optifabric.compat.MixinFixerExtension;
import me.modmuss50.optifabric.compat.OptifabricMixinErrorHandler;
import me.modmuss50.optifabric.mod.OptifineVersion.JarType;
import me.modmuss50.optifabric.patcher.ClassCache;
import me.modmuss50.optifabric.util.MixinInternals;
import me.modmuss50.optifabric.util.RemappingUtils;

import com.chocohead.mm.api.ClassTinkerers;
Expand All @@ -48,6 +51,9 @@ public class OptifabricSetup implements Runnable {
//This is called early on to allow us to get the transformers in before minecraft starts
@Override
public void run() {
MixinInternals.registerExtension(new MixinFixerExtension());
Mixins.registerErrorHandlerClass(OptifabricMixinErrorHandler.class.getName());

OptifineInjector injector;
try {
Pair<File, ClassCache> runtime = OptifineSetup.getRuntime();
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/optifabric.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"required": true,
"package": "me.modmuss50.optifabric.mixin",
"compatibilityLevel": "JAVA_8",
"plugin": "me.modmuss50.optifabric.compat.OptifabricMixinPlugin",
"mixins": [
"MixinTitleScreen",
"CrashReportMixin"
Expand Down

0 comments on commit a50939d

Please sign in to comment.