-
Notifications
You must be signed in to change notification settings - Fork 15
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
[Fabric 1.19.4 v2.7] | Error connecting to the server #48
Comments
Hello! Thanks a lot for respoting the bug. Here's a technical explanation of what I believe might be going on if you're interested in reading it.So, I've been examining the Yarn deobfuscation mappings to deobfuscate the error message and identify its cause. Here's what I've found:
I'll try to simplify this: The `MinecraftClient` class is crucial for the client-side game as it tracks everything that happens when you start the game. It has a field/property named `player` which is of the type `ClientPlayerEntity`. This property tracks the player on your end (client-side player) when you're in-game, but it is "undefined" when you're in the main menu. The error appears to be occurring because something is trying to access the `player` property before it's defined. When you join a world, the `player` is undefined until you're fully logged into a server. If something triggers a mod (possibly mine) to access the `player` property before it's defined, a `NullPointerException` error occurs, which basically means "Hey, you're trying to access something that doesn't exist". So with the technical explanation above in mind, I'm not sure why my mod (if indeed it is the cause) would attempt to access the "player" property during server login. Thanks for the logs as well, as they are vrey helpful, but unfortunately, they do not include the error's "stack trace". In case you don't know what that is, a "stack trace" is an essential debugging tool that indicates exactly which lines of code are causing issues, so the absence of the stack trace might be due to the game not including it. From what I see in the mod's code, one possible issue could occur if a server sends player statistics during the login process. This might cause In the meantime, could you let me know if this specifically takes place while |
I can't test this with stack trace, but without this mod I can go in |
I fixed that one line of code and published a temp. pre-release here on GitHub: Please give it a try and see if it fixes your issue before I publish the patch. |
Yes, the new version is working, thanks for fixing it! |
And thank you for spotting the issue, reporting it, and helping me resolve it. Have a great day again! |
Hi, I have a strange bug when connecting to the server
https://mclo.gs/NNM9lOz
I noticed this bug only on one server, when connecting to others everything is fine
The text was updated successfully, but these errors were encountered: