Skip to content

Commit 3595aa0

Browse files
committed
Fix bendylib
1 parent 4509954 commit 3595aa0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/sodiumCompatibility/java/net/irisshaders/iris/compat/sodium/mixin/IrisSodiumCompatMixinPlugin.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
*/
1616
public class IrisSodiumCompatMixinPlugin implements IMixinConfigPlugin {
1717

18+
public static boolean isBendyLibLoaded;
1819
public static boolean isRubidiumLoaded;
1920

2021
@Override
2122
public void onLoad(String mixinPackage) {
23+
isBendyLibLoaded = LoadingModList.get().getModFileById("bendylib") != null;
2224
isRubidiumLoaded = LoadingModList.get().getModFileById("rubidium") != null;
2325
}
2426

@@ -29,7 +31,15 @@ public String getRefMapperConfig() {
2931

3032
@Override
3133
public boolean shouldApplyMixin(String targetClassName, String mixinClassName) {
32-
return isRubidiumLoaded;
34+
if (!isRubidiumLoaded) {
35+
return false;
36+
}
37+
38+
if (mixinClassName.endsWith(".copyEntity.ModelPartMixin") || mixinClassName.endsWith(".copyEntity.CuboidMixin")) {
39+
return !isBendyLibLoaded;
40+
}
41+
42+
return true;
3343
}
3444

3545
@Override

0 commit comments

Comments
 (0)