mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-22 05:02:18 +00:00
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:
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();
|
||||
|
||||
Reference in new issue
Block a user