|
13 | 13 | import org.embeddedt.modernfix.annotation.RequiresMod; |
14 | 14 | import org.embeddedt.modernfix.platform.ModernFixPlatformHooks; |
15 | 15 | import org.objectweb.asm.ClassReader; |
| 16 | +import org.objectweb.asm.Type; |
16 | 17 | import org.objectweb.asm.tree.AnnotationNode; |
17 | 18 | import org.objectweb.asm.tree.ClassNode; |
18 | 19 | import org.spongepowered.asm.mixin.Mixin; |
@@ -51,10 +52,10 @@ private static boolean modPresent(String modId) { |
51 | 52 | return ModernFixPlatformHooks.modPresent(modId); |
52 | 53 | } |
53 | 54 |
|
54 | | - private static final String MIXIN_DESC = Mixin.class.descriptorString(); |
55 | | - private static final String MIXIN_CLIENT_ONLY_DESC = ClientOnlyMixin.class.descriptorString(); |
56 | | - private static final String MIXIN_REQUIRES_MOD_DESC = RequiresMod.class.descriptorString(); |
57 | | - private static final String MIXIN_DEV_ONLY_DESC = IgnoreOutsideDev.class.descriptorString(); |
| 55 | + private static final String MIXIN_DESC = Type.getDescriptor(Mixin.class); |
| 56 | + private static final String MIXIN_CLIENT_ONLY_DESC = Type.getDescriptor(ClientOnlyMixin.class); |
| 57 | + private static final String MIXIN_REQUIRES_MOD_DESC = Type.getDescriptor(RequiresMod.class); |
| 58 | + private static final String MIXIN_DEV_ONLY_DESC = Type.getDescriptor(IgnoreOutsideDev.class); |
58 | 59 |
|
59 | 60 | private static final Pattern PLATFORM_PREFIX = Pattern.compile("(forge|fabric|common)\\."); |
60 | 61 |
|
@@ -223,6 +224,7 @@ private ModernFixEarlyConfig(File file) { |
223 | 224 | disableIfModPresent("mixin.bugfix.paper_chunk_patches", "c2me"); |
224 | 225 | disableIfModPresent("mixin.perf.cache_strongholds", "littletiles"); |
225 | 226 | disableIfModPresent("mixin.perf.nbt_memory_usage", "c2me"); |
| 227 | + disableIfModPresent("mixin.bugfix.item_cache_flag", "lithium", "canary", "radium"); |
226 | 228 | // DimThread makes changes to the server chunk manager (understandably), C2ME probably does the same |
227 | 229 | disableIfModPresent("mixin.bugfix.chunk_deadlock", "c2me", "dimthread"); |
228 | 230 | disableIfModPresent("mixin.perf.reuse_datapacks", "tac"); |
|
0 commit comments