mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-13 00:47:52 +00:00
Add early guard and more detailed error message for methods not matching scala signatures.
This commit is contained in:
1 parent
ec82adef1f
commit
e80bb3190a
1 file changed
+5
-1
@@ -603,7 +603,11 @@ object ASMMixinCompiler
|
||||
}
|
||||
else if(!sym.name.equals("$init$") && !sym.isPrivate)
|
||||
{
|
||||
methods+=findMethod(new ObfMapping(cnode.name, sym.name, desc), cnode)
|
||||
val map = new ObfMapping(cnode.name, sym.name, desc)
|
||||
val method = findMethod(map, cnode)
|
||||
if(method == null)
|
||||
throw new RuntimeException("Unable to add multipart trait: "+map+" found in scala signature but not in class file. Most likely an obfuscation issue.")
|
||||
methods+=method
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user