Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.20.1 version is crashing on servers. #21

Closed
AzureDoom opened this issue Jul 19, 2023 · 3 comments
Closed

1.20.1 version is crashing on servers. #21

AzureDoom opened this issue Jul 19, 2023 · 3 comments

Comments

@AzureDoom
Copy link

[18.07 18:28:48] [Server] 	Mod File/mods/Kambrik-6.1.0+1.20.1-forge.jar
[18.07 18:28:48] [Server] 	Failure messageKambrik (kambrik) has failed to load correctly
[18.07 18:28:48] [Server] 		java.lang.ExceptionInInitializerErrornull
[18.07 18:28:48] [Server] 	Mod Version6.1.0+1.20.1
[18.07 18:28:48] [Server] 	Mod Issue URLhttps://github.com/ejektaflex/Kambrik/issues
[18.07 18:28:48] [Server] 	Exception messagejava.lang.RuntimeException: Attempted to load class net/minecraft/client/KeyMapping for invalid dist DEDICATED_SERVER
@ejektaflex
Copy link
Owner

Hi @AzureDoom ,
This isn't enough of the log for me to diagnose the problem. I tested it on a server before releasing, so in this state I can't reproduce it, and as such I need a full stack trace to see what's happening.

@ejektaflex
Copy link
Owner

ejektaflex commented Jul 19, 2023

crash-2023-07-19_11.23.14-fml.txt

I took some time to replicate this and found that it crashes in a Forge server environment but not Fabric. This is because of "Kotlin for Forge" doing mod reflection when constructing itself and catching an unused (client-only) API method, which I'll have to move to a separate package. I'll try get this done today.

@ejektaflex
Copy link
Owner

This is fixed in Kambrik 6.1.1, which has been uploaded to Modrinth and CurseForge (pending review).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants