aboutsummaryrefslogtreecommitdiff
path: root/versions/src/main/java/cc/polyfrost/oneconfig/internal/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'versions/src/main/java/cc/polyfrost/oneconfig/internal/plugin')
-rw-r--r--versions/src/main/java/cc/polyfrost/oneconfig/internal/plugin/OneConfigMixinPlugin.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/versions/src/main/java/cc/polyfrost/oneconfig/internal/plugin/OneConfigMixinPlugin.java b/versions/src/main/java/cc/polyfrost/oneconfig/internal/plugin/OneConfigMixinPlugin.java
index e272932..e242e2f 100644
--- a/versions/src/main/java/cc/polyfrost/oneconfig/internal/plugin/OneConfigMixinPlugin.java
+++ b/versions/src/main/java/cc/polyfrost/oneconfig/internal/plugin/OneConfigMixinPlugin.java
@@ -67,8 +67,13 @@ public class OneConfigMixinPlugin implements IMixinConfigPlugin {
@Override
public List<String> getMixins() {
+ ArrayList<String> mixins = new ArrayList<>();
+ if (Platform.getInstance().getLoader().equals(Platform.Loader.FORGE)) {
+ mixins.add("EventBusMixin");
+ } else if (Platform.getInstance().getLoader().equals(Platform.Loader.FABRIC)) {
+ mixins.add("NetHandlerPlayClientMixin");
+ }
if (Platform.getInstance().getMinecraftVersion() >= 11600) {
- ArrayList<String> mixins = new ArrayList<>();
if (Platform.getInstance().getLoader() == Platform.Loader.FORGE) {
mixins.add("ClientModLoaderMixin");
} else {
@@ -80,9 +85,8 @@ public class OneConfigMixinPlugin implements IMixinConfigPlugin {
mixins.add("MouseMixin");
mixins.add("TickTimeTrackerMixin");
return mixins;
- } else {
- return null;
}
+ return mixins.isEmpty() ? null : mixins;
}
@Override