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.java15
1 files changed, 10 insertions, 5 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 6a76a09..0ef5414 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
@@ -43,11 +43,16 @@ public class OneConfigMixinPlugin implements IMixinConfigPlugin {
public List<String> getMixins() {
if (Platform.getInstance().getMinecraftVersion() >= 11600) {
ArrayList<String> mixins = new ArrayList<>();
- mixins.add("ClientModLoaderMixin");
- mixins.add("KeyboardListenerMixin");
- mixins.add("MouseHelperAccessor");
- mixins.add("MouseHelperMixin");
- mixins.add("TimeTrackerMixin");
+ if (Platform.getInstance().getLoader() == Platform.Loader.FORGE) {
+ mixins.add("ClientModLoaderMixin");
+ } else {
+ mixins.add("FramebufferMixin");
+ mixins.add("GameRendererAccessor");
+ }
+ mixins.add("KeyboardMixin");
+ mixins.add("MouseAccessor");
+ mixins.add("MouseMixin");
+ mixins.add("TickTimeTrackerMixin");
return mixins;
} else {
return null;