Skip to content

Commit 799d4dc

Browse files
Prevent compat mixins from loading if mod is not present
1 parent 23d0dbf commit 799d4dc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/me/juancarloscp52/bedrockify/mixin/BedrockIfyMixinPlugin.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ public boolean shouldApplyMixin(String targetClassName, String mixinClassName) {
3232
LogManager.getLogger().info("The mod \"Held Item Info\" has been detected. This mod is not totally compatible with BedrockIfy. BedrockIfy Held Item Tooltips has been disabled.");
3333
return false;
3434
}
35+
if(mixinClassName.contains("detailArmorBar") && !FabricLoader.getInstance().isModLoaded("detailab")){
36+
return false;
37+
}
38+
if(mixinClassName.contains("appleskin") && !FabricLoader.getInstance().isModLoaded("appleskin")){
39+
return false;
40+
}
3541
if(mixinClassName.contains("me.juancarloscp52.bedrockify.mixin.client.features.bedrockShading") && FabricLoader.getInstance().isModLoaded("optifabric")){
3642
LogManager.getLogger().info("The mod \"OptiFabric\" has been detected. This mod is not totally compatible with BedrockIfy. BedrockIfy Bedrock Shading is now disabled.");
3743
return false;

0 commit comments

Comments
 (0)