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