Properly filter out annotations that are for multiple mods in the same mod source.

This prevents disabled mods from getting their proxies injected.
Also prevents mods from getting their proxies injected multiple times.
Effects the @EventBusSubscriber, @Instance, @Metadata, @SidedProxy annotations.
If the target modid is not in the annotation data, and there are multiple mods in the source, it will attempt to find it by matching the annotations's class names.
This is a potentially breaking change. Review your logs for "skipping" messages.
This commit is contained in:
LexManos committed 2016-12-05 17:19:15 -08:00
1 parent aee9d8c9b4
commit 160427b12c
7 files changed
+92 -12

No files matched your search

@@ -44,7 +44,7 @@ public class ObjectHolderTest
}
}
@Mod.EventBusSubscriber
@Mod.EventBusSubscriber(modid = MODID)
public static class Registration {
@SubscribeEvent
public static void newRegistry(RegistryEvent.NewRegistry event) {