Connector Extras

Connector Extras

6M Downloads

EMI integration can cause duplicate plugins

emilyploszaj opened this issue ยท 0 comments

commented

Several mods with EMI integration, such as xplat mods or Fabric mods that previously wanted to expose themselves through Sinytra, may have both added a class to their fabric entrypoint, and annotated it with @EmiEntrypoint. The current implementation seems like it would add these plugins twice, which will cause a whole host of unwanted behavior, like duplicate recipes. A "simple" solution is keeping track of all of the Classes that have already been picked up and ignoring the fabric entrypoints using those classes.

https://github.com/Sinytra/ConnectorExtras/blob/master/emi-bridge/src/main/java/dev/su5ed/sinytra/connectorextras/emibridge/mixin/EmiAgnosForgeMixin.java