asm util hotfix

This commit is contained in:
FalsePattern committed 2023-11-26 18:06:10 +01:00
1 parent 9c102bddf1
commit df5a5c5cd0
1 file changed
+2 -2
@@ -143,7 +143,7 @@ public class ASMUtil {
@StableAPI.Expose
public static MappingType discoverClassMappingType(ClassNode cn) {
if (CoreLoadingPlugin.isObfuscated()) {
if (!CoreLoadingPlugin.isObfuscated()) {
if (MappingManager.containsClass(NameType.Internal, MappingType.MCP, cn.name)) {
return MappingType.MCP;
}
@@ -157,7 +157,7 @@ public class ASMUtil {
@StableAPI.Expose
public static UniversalClass toUniversalClass(ClassNode cn) {
if (CoreLoadingPlugin.isObfuscated()) {
if (!CoreLoadingPlugin.isObfuscated()) {
try {
return MappingManager.classForName(NameType.Internal, MappingType.MCP, cn.name);
} catch (ClassNotFoundException e) {