Skip to content

Commit

Permalink
Disable surface builder alloc optimization when qfapi is present
Browse files Browse the repository at this point in the history
  • Loading branch information
ishland committed Dec 13, 2022
1 parent d5705ed commit fc07d62
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ public boolean shouldApplyMixin(String targetClassName, String mixinClassName) {
mixinClassName.equals("com.ishland.c2me.opts.allocs.mixin.MixinNbtCompound1"))
return !FabricLoader.getInstance().isModLoaded("lithium");

if (mixinClassName.startsWith("com.ishland.c2me.opts.allocs.mixin.surfacebuilder.")) {
return !FabricLoader.getInstance().isModLoaded("quilted_fabric_api");
}

return true;
}

Expand Down

0 comments on commit fc07d62

Please sign in to comment.