From fc07d6207acb6e54ea668162cc74f2c512126491 Mon Sep 17 00:00:00 2001 From: ishland Date: Tue, 13 Dec 2022 15:44:45 +0800 Subject: [PATCH] Disable surface builder alloc optimization when qfapi is present --- .../main/java/com/ishland/c2me/opts/allocs/MixinPlugin.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/c2me-opts-allocs/src/main/java/com/ishland/c2me/opts/allocs/MixinPlugin.java b/c2me-opts-allocs/src/main/java/com/ishland/c2me/opts/allocs/MixinPlugin.java index 618494a82..c396146fc 100644 --- a/c2me-opts-allocs/src/main/java/com/ishland/c2me/opts/allocs/MixinPlugin.java +++ b/c2me-opts-allocs/src/main/java/com/ishland/c2me/opts/allocs/MixinPlugin.java @@ -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; }