File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
common/src/main/java/org/embeddedt/modernfix/core/config Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1313import org .embeddedt .modernfix .annotation .RequiresMod ;
1414import org .embeddedt .modernfix .platform .ModernFixPlatformHooks ;
1515import org .objectweb .asm .ClassReader ;
16+ import org .objectweb .asm .Type ;
1617import org .objectweb .asm .tree .AnnotationNode ;
1718import org .objectweb .asm .tree .ClassNode ;
1819import org .spongepowered .asm .mixin .Mixin ;
@@ -51,10 +52,10 @@ private static boolean modPresent(String modId) {
5152 return ModernFixPlatformHooks .modPresent (modId );
5253 }
5354
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 );
5859
5960 private static final Pattern PLATFORM_PREFIX = Pattern .compile ("(forge|fabric|common)\\ ." );
6061
You can’t perform that action at this time.
0 commit comments