diff --git a/fabric/src/main/java/dev/itsmeow/betteranimalsplus/fabric/FabricMixinPlugin.java b/fabric/src/main/java/dev/itsmeow/betteranimalsplus/fabric/FabricMixinPlugin.java index ee2336d0..23c9e5db 100644 --- a/fabric/src/main/java/dev/itsmeow/betteranimalsplus/fabric/FabricMixinPlugin.java +++ b/fabric/src/main/java/dev/itsmeow/betteranimalsplus/fabric/FabricMixinPlugin.java @@ -1,6 +1,6 @@ package dev.itsmeow.betteranimalsplus.fabric; -import dev.architectury.platform.Platform; +import net.fabricmc.loader.api.FabricLoader; import org.objectweb.asm.tree.ClassNode; import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin; import org.spongepowered.asm.mixin.extensibility.IMixinInfo; @@ -21,7 +21,7 @@ public String getRefMapperConfig() { @Override public boolean shouldApplyMixin(String targetClassName, String mixinClassName) { - return (!mixinClassName.equals("dev.itsmeow.betteranimalsplus.mixin.fabric.ItemCapeMixin") && !mixinClassName.equals("dev.itsmeow.betteranimalsplus.mixin.fabric.TrinketSlotMixin")) || Platform.isModLoaded("trinkets"); + return (!mixinClassName.equals("dev.itsmeow.betteranimalsplus.mixin.fabric.ItemCapeMixin") && !mixinClassName.equals("dev.itsmeow.betteranimalsplus.mixin.fabric.TrinketSlotMixin")) || FabricLoader.getInstance().isModLoaded("trinkets"); } @Override diff --git a/gradle.properties b/gradle.properties index 2e7bfdfb..fa0a8c86 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,7 +9,7 @@ architectury_version = 3.2.60 fabric_loader_version = 0.12.12 fabric_api_version = 0.45.0+1.18 - imdlib_version = 1.18.1-e2a2618312cc73f995c18e94066f9e26babe1fdb + imdlib_version = 1.18.1-77baad92db14c1a4cb8616ac87e0fa248416ff4d # Publishing github = itsmeow/betteranimalsplus