Skip to content

Commit

Permalink
Fix dependency notification on Fabric, fix config crash when connecti…
Browse files Browse the repository at this point in the history
…ng to server
  • Loading branch information
itsmeow committed Dec 28, 2021
1 parent 0485a5d commit d93211d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d93211d

Please sign in to comment.