Roughly Enough Items Fabric/Forge/NeoForge (REI)

Roughly Enough Items Fabric/Forge/NeoForge (REI)

40M Downloads

[Bug] Unable to load client-side plugin on Forge

ctrlaltmilk opened this issue ยท 1 comments

commented

What happened?

When loading plugins on the server side, REI enumerates all classes annotated with @REIPlugin. If a plugin implements REIClientPlugin, this will cause an exception while trying to load the plugin class. The below logs were made using this class:

@REIPlugin({Dist.CLIENT})
public class TestREIPlugin implements REIClientPlugin {}

What mod loaders are you seeing the problem on?

Forge

What do you think this bug is of?

  • Visual
  • Recipe Lookup
  • Cheat Mode
  • Plugin Integration / JEI Plugin Compatibility
  • Others

Relevant log output

[00:55:36] [modloading-worker-0/FATAL] (RuntimeDistCleaner) Attempted to load class me/shedaniel/rei/api/client/plugins/REIClientPlugin for invalid dist DEDICATED_SERVER
[00:55:36] [modloading-worker-0/WARN] (REI) Plugin io.github.verticalegg.TestREIPlugin is attempting to load on the server, but is not compatible with the server. The mod should declare the environments it is compatible with in the @me.shedaniel.rei.forge.REIPlugin annotation.

Anything else?

No response

By submitting this issue, I have included the necessary logs by pasting the contents into the correct location or attaching the file as an upload.

  • Yes, and I did not use any paste services other than GitHub Gists.

By submitting this issue, I have confirmed my REI and REI's dependencies are up to date.

  • Yes
commented

I have deprecated @REIPlugin and introduced @REIPluginCommon @REIPluginClient and @REIPluginDedicatedServer
Thanks for submitting this issue!