diff --git a/src/sodiumCompatibility/java/net/irisshaders/iris/compat/sodium/mixin/IrisSodiumCompatMixinPlugin.java b/src/sodiumCompatibility/java/net/irisshaders/iris/compat/sodium/mixin/IrisSodiumCompatMixinPlugin.java index 5bfbe6c96d..f13c8bb458 100644 --- a/src/sodiumCompatibility/java/net/irisshaders/iris/compat/sodium/mixin/IrisSodiumCompatMixinPlugin.java +++ b/src/sodiumCompatibility/java/net/irisshaders/iris/compat/sodium/mixin/IrisSodiumCompatMixinPlugin.java @@ -15,10 +15,12 @@ */ public class IrisSodiumCompatMixinPlugin implements IMixinConfigPlugin { + public static boolean isBendyLibLoaded; public static boolean isRubidiumLoaded; @Override public void onLoad(String mixinPackage) { + isBendyLibLoaded = LoadingModList.get().getModFileById("bendylib") != null; isRubidiumLoaded = LoadingModList.get().getModFileById("rubidium") != null; } @@ -29,7 +31,15 @@ public String getRefMapperConfig() { @Override public boolean shouldApplyMixin(String targetClassName, String mixinClassName) { - return isRubidiumLoaded; + if (!isRubidiumLoaded) { + return false; + } + + if (mixinClassName.endsWith(".copyEntity.ModelPartMixin") || mixinClassName.endsWith(".copyEntity.CuboidMixin")) { + return !isBendyLibLoaded; + } + + return true; } @Override