feldim2425 / MoreOverlays

MC Mod : Brings back some of the NEI Overlays ( Mob Spawns, Chunk Bounds, Item Search)
MIT License
22 stars 18 forks source link

Crash on dedicated server #71

Open Tander opened 4 years ago

Tander commented 4 years ago

Caused by: java.lang.RuntimeException: Attempted to load class net/minecraft/client/gui/screen/Screen for invalid dist DEDICATED_SERVER

Tested on minecraftforge:28.1.106 moreoverlays-1.16.1

Crashlog https://hatebin.com/fqlbwwfmgy

P.S.: Yes I know it doesn't have to be on server, but looks like because of it I see this: изображение I can join the server, but this message is kinda annoying.

feldim2425 commented 4 years ago

It is supposed to run client side only... but it seems like Forge doesn't have an option to make it a client side only mod. I will try to fix the crash but I don't know how to tell forge that it isn't required on the server side.

Tander commented 4 years ago

I'm not 100% about why i see X label, but the only difference between client and server - it's "More overlays". But I can join server with this message, so I'd say it's minor problem.

feldim2425 commented 4 years ago

Could also be a render bug or something with the version comparison. In earlier versions I just had to tell forge which versions on the other side are allowed and it also had a parameter to prevent the loading of the mod completely on dedicated servers. I have to look into that a bit more.