Co-authored-by: shedaniel <[email protected]>
This commit is contained in:
modmuss50andshedaniel committed 2022-01-31 20:15:34 +00:00
1 parent a9b3e66eea
commit 0e1bace9a8
2 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ packaging=jar
description=Mixin (Fabric fork)
url=https://fabricmc.net
organization=FabricMC
buildVersion=0.11.0
buildVersion=0.11.1
upstreamMixinVersion=0.8.5
buildType=RELEASE
asmVersion=9.2
@@ -274,6 +274,12 @@ public abstract class TypeUtils {
* @return java signature
*/
public static String getJavaSignature(String descriptor) {
/* Fabric: Work around https://github.com/SpongePowered/Mixin/issues/560 */
if (!descriptor.contains("(")) {
return SignaturePrinter.getTypeName(org.objectweb.asm.Type.getType(descriptor), false, true);
}
/* End fabric */
return new SignaturePrinter("", descriptor).setFullyQualified(true).toDescriptor();
}