1.18.2 - 2.3.0-b: server crashes trying to load client
My buddy and I are playing Wold's Vaults (a fork of Vault Hunters 3), and they said I should install this major update on our server.
https://www.curseforge.com/minecraft/modpacks/wolds-vaults
My server is running Kubuntu 24.04
(I installed openjdk-17 with apt, not sure why it isn't using that, I could not find it on my system)
I downloaded the mod with
First Fatal Error:
I tested the same .jar file on a dedicated server with no other mods and it works fine. (I did not join with a client though).
Server loads up fine without DH 2.3 installed.
I attached the crash log.
Mods list of the 415 mods (
Any ideas or tips would be appreciated, though we prob wont be playing any MC until we finish the TrailMakers 2.0 campaign.
https://www.curseforge.com/minecraft/modpacks/wolds-vaults
My server is running Kubuntu 24.04
(I installed openjdk-17 with apt, not sure why it isn't using that, I could not find it on my system)
I downloaded the mod with
wget https://cdn.modrinth.com/data/uCdwusMi/versions/trPCtnMC/DistantHorizons-fabric-forge-2.3.0-b-1.18.2.jarFirst Fatal Error:
I tested the same .jar file on a dedicated server with no other mods and it works fine. (I did not join with a client though).
Server loads up fine without DH 2.3 installed.
I attached the crash log.
Mods list of the 415 mods (
ls ./mods/) is attached as well.Any ideas or tips would be appreciated, though we prob wont be playing any MC until we finish the TrailMakers 2.0 campaign.
CurseForge
An opinionated and heavily customized, and modified Vault Hunters 3 experience.
20.8K Downloads | Modpacks
20.8K Downloads | Modpacks
Solution
Claude via Cursor IDE said that the version check method being used is not server side safe in forge 1.18.2
I didn't ask it why it worked fine without other mods, although I did realize that maybe it was the modloader version doing it
This was the change it made:
"I can see the issue now. The getMinecraftVersion() method is trying to use Minecraft.getInstance() which is a client-only method. For versions before 1.19.2, it's using the client-side method to get the version, while for 1.19.2 and later it's using the server-safe SharedConstants class."
I didn't ask it why it worked fine without other mods, although I did realize that maybe it was the modloader version doing it
This was the change it made:
