From bdd0af52804334919526eb93e33e51089f9ce484 Mon Sep 17 00:00:00 2001 From: tterrag Date: Sat, 11 Apr 2020 00:55:54 -0400 Subject: [PATCH] Fix element type of scanned child annotations --- .../minecraftforge/fml/loading/moddiscovery/ModAnnotation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fmllauncher/java/net/minecraftforge/fml/loading/moddiscovery/ModAnnotation.java b/src/fmllauncher/java/net/minecraftforge/fml/loading/moddiscovery/ModAnnotation.java index b2f35154f..0ea6c9ee2 100644 --- a/src/fmllauncher/java/net/minecraftforge/fml/loading/moddiscovery/ModAnnotation.java +++ b/src/fmllauncher/java/net/minecraftforge/fml/loading/moddiscovery/ModAnnotation.java @@ -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; }