Fix vanilla crash classes not being preloaded. Closes #4769

Fix classes not being aggregated for mods using the new annotation cache.
This commit is contained in:
LexManos committed 2018-02-26 15:36:39 -08:00
1 parent 49be9b273e
commit e299489493
4 files changed
+31 -7

No files matched your search

@@ -129,6 +129,14 @@ public class JarDiscoverer implements ITypeDiscoverer
ZipEntry json = jar.getEntry(JsonAnnotationLoader.ANNOTATION_JSON);
Multimap<String, ASMData> annos = JsonAnnotationLoader.loadJson(jar.getInputStream(json), candidate, table);
for (ZipEntry e : Collections.list(jar.entries()))
{
if (!e.getName().startsWith("__MACOSX") && !e.getName().startsWith("META-INF/") && e.getName().endsWith(".class"))
{
candidate.addClassEntry(e.getName());
}
}
for (Entry<Type, Constructor<? extends ModContainer>> entry : ModContainerFactory.modTypes.entrySet())
{
Type type = entry.getKey();