diff options
author | Anthony Hilyard <anthony.hilyard@gmail.com> | 2022-01-25 17:23:51 -0800 |
---|---|---|
committer | Anthony Hilyard <anthony.hilyard@gmail.com> | 2022-01-25 17:23:51 -0800 |
commit | efe2214f497848e747192b7964af68bb7c94fd33 (patch) | |
tree | c126bce14de003e8799220e1a0270c5537a41c48 /src/main/java/com/anthonyhilyard/iceberg/mixin | |
parent | 0cd83156930cf320578e09fafa17069bedd8230f (diff) | |
download | Iceberg-efe2214f497848e747192b7964af68bb7c94fd33.tar.gz Iceberg-efe2214f497848e747192b7964af68bb7c94fd33.tar.bz2 Iceberg-efe2214f497848e747192b7964af68bb7c94fd33.zip |
Locked configmenusforge mixins to current version. Fixed IcebergConfig
events not firing.
Diffstat (limited to 'src/main/java/com/anthonyhilyard/iceberg/mixin')
-rw-r--r-- | src/main/java/com/anthonyhilyard/iceberg/mixin/ForgeConfigMenusPlugin.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/anthonyhilyard/iceberg/mixin/ForgeConfigMenusPlugin.java b/src/main/java/com/anthonyhilyard/iceberg/mixin/ForgeConfigMenusPlugin.java index 23c70ad..99f08c3 100644 --- a/src/main/java/com/anthonyhilyard/iceberg/mixin/ForgeConfigMenusPlugin.java +++ b/src/main/java/com/anthonyhilyard/iceberg/mixin/ForgeConfigMenusPlugin.java @@ -3,6 +3,7 @@ package com.anthonyhilyard.iceberg.mixin; import java.util.List; import java.util.Set; +import org.apache.maven.artifact.versioning.DefaultArtifactVersion; import org.objectweb.asm.tree.ClassNode; import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin; import org.spongepowered.asm.mixin.extensibility.IMixinInfo; @@ -34,7 +35,8 @@ public class ForgeConfigMenusPlugin implements IMixinConfigPlugin // Check if Config Menus for Forge is available. for (ModInfo modInfo : loadingModList.getMods()) { - if (modInfo.getModId().equals("configmenusforge")) + // If config menus for forge is loaded AND it is version 3.1.0, load our mixins. + if (modInfo.getModId().equals("configmenusforge") && modInfo.getVersion().compareTo(new DefaultArtifactVersion("3.1.0")) == 0) { return true; } |