Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Filter duplicate mod files in mod file scan data #6254
Forge allows having two (or more) mods in one mod file.
For ObjectHolder and Capability Injects this means, that all fields of defined in the mod file are injected twice.
Furthermore, other mods like JEI use this as well. For JEI this means that any @JeiPlugin is loaded twice (causing an error).
This PR simply adds a .distinct call in the stream to filter duplicate mod files.