File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
src/sodiumCompatibility/java/net/irisshaders/iris/compat/sodium/mixin Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 15
15
*/
16
16
public class IrisSodiumCompatMixinPlugin implements IMixinConfigPlugin {
17
17
18
+ public static boolean isBendyLibLoaded ;
18
19
public static boolean isRubidiumLoaded ;
19
20
20
21
@ Override
21
22
public void onLoad (String mixinPackage ) {
23
+ isBendyLibLoaded = LoadingModList .get ().getModFileById ("bendylib" ) != null ;
22
24
isRubidiumLoaded = LoadingModList .get ().getModFileById ("rubidium" ) != null ;
23
25
}
24
26
@@ -29,7 +31,15 @@ public String getRefMapperConfig() {
29
31
30
32
@ Override
31
33
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 ;
33
43
}
34
44
35
45
@ Override
You can’t perform that action at this time.
0 commit comments