stuin / Lacrimis

Large magical Minecraft mod using Crying Obsidian
https://www.curseforge.com/minecraft/mc-mods/lacrimis
MIT License
4 stars 1 forks source link

Mod crashes attempting to access clientside code on serverside. #3

Closed queenofthebees closed 3 years ago

queenofthebees commented 3 years ago

Importing/referencing clientside-only classes in common classes causes crashes on dedicated servers. This is most notably apparent in a ClassNotFoundException at server boot due to not finding these classes. I tested a quick-fix involving just removing all clientside code from the server's source, which fixed it.

As far as I can tell, the most effective fix would be to separate the server/common and client versions of the ModEntityTypes, ModCrafting, ModNetworking, and ModParticles classes.

stuin commented 3 years ago

Yeah, that seems about right. I did not remember to test server side stuff at all. Give me a bit.