GabrielOlvH / Industrial-Revolution

An Industrial mod made for Fabric.
Apache License 2.0
196 stars 58 forks source link

[BUG] Server causes error when loaded with REI #486

Open DMNight6 opened 2 years ago

DMNight6 commented 2 years ago

Description: Apparently loading REI with InvRev causes an error for the server.

Steps to Reproduce: Download REI and InvRev and put these files inside the fabric server mods file.

Technical Information:

Logs: https://pastebin.com/94Bh5bFn

uzervlad commented 2 years ago

Also unable to start a server without REI even though it shouldn't be a required dependency

mopsy14 commented 2 years ago

Caused by: java.lang.RuntimeException: Rerached side issue when loading REI plugin by Industrial Revolution. Please use "rei_server", "rei_client" or "rei_common" instead.

This is the error causing it, it's most likely because REI did an update.

uzervlad commented 2 years ago

No, the issue persists throughout all 1.19 REI versions, so it's likely not the cause. In fact, indrev already uses rei_common, although I believe rei_client should be enough

WbyNghbr commented 2 years ago

@uzervlad Thanks for the comment. That actually works for me as a workaround.

For anyone that may encounter the same problem, here's a quick and dirty solution:

After that, you should be able to use the modified .jar archive both on client and server without any issues.

I'm not sure how fabric and rei handle it, but I would imagine that after this change rei_server initialization is no longer triggered, avoiding the problem completely.