Fix element type of scanned child annotations

This commit is contained in:
tterrag 2020-04-11 00:55:54 -04:00
parent 5e554530ac
commit bdd0af5280

View file

@ -132,7 +132,7 @@ public class ModAnnotation
}
public ModAnnotation addChildAnnotation(String name, String desc)
{
ModAnnotation child = new ModAnnotation(ElementType.PARAMETER, Type.getType(desc), this);
ModAnnotation child = new ModAnnotation(type, Type.getType(desc), this);
addProperty(name, child.getValues());
return child;
}