-
Notifications
You must be signed in to change notification settings - Fork 19
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] Crash when using a Ticker to join a server too early (Screen cannot be NULL) #941
Comments
Good old Lautsprecher of the fellow Deutsche Kartoffel :D The issue seems to be related to Fabric's API, but that error shouldn't happen anymore. I thought I fixed that. Could be related to another mod OR the way you try to join the server is somehow bugged. Can you join the server with a normal button or does that also causes the game to crash? //Edit: Oh I think I know what's happening. Your Ticker element joins the server the moment the Title screen opens, right? Yeah well, I think at that point the Fabric API has not finished doing its thing yet, so it thinks the screen is NULL instead of the Title screen. I don't know if I can fix that tbh. |
Yes, the good old Deutsche Kartoffel xD So it just isn´t possible? Or is there another way I can make the user join a server when a variable is true? |
Yes, I can join a server when I just press a button that joins it |
Describe the bug
When I add a Ticker to my main menu that checks if a variable is true and if my server is online and then joins the server using my serverip variable
To Reproduce
I will use the $ sign to indicate a variable
Steps to reproduce the behavior (e.g.):
Expected behavior
That when I start the game, $autojoinserver is true and my server is online that I would automatically join the server
but instead it crashes :(
Game Log
Here is the link: https://mclo.gs/NtYfgHM
Screenshots
If screenshots would help to explain the issue, please include these.
Basic Informations (please complete the following information):
The text was updated successfully, but these errors were encountered: