When you are on a server with hardcore=true, there is a bug with the "Leave server button".
How to reproduce:
Die on hardcore mode enabled server.
Click "Leave Sever"
Go to singleplayer, multiplayer or realms menu.
Hit Esc.
Expected result
You will be disconnected from the server and couldn't go back in the server without navigating the multiplayer menu.
Actual result
You will reappear on the Server death screen with the choice of leaving or spectating the world again.
Video demonstrating this issue by @unknown
[media]
Linked issues
Attachments
Comments

This issue seem of rather small importance compared to others. But As you can see on the video, it has important consequence, if you try to join a local world, you will get strange results like the time of day going back and forth. Game logs continuously showing this error:
Error executing task on Client
java.lang.NullPointerException: null
with different stack traces, for every local world you join until you decide to reboot your game.
Is this still an issue in 19w35a or later?

This is not an issue in 19w39a.

This is also not an issue in 19w35a or later.
Please attach the crash report (
[minecraft|http://hopper.minecraft.net/help/finding-minecraft-data-folder]/crash-reports/crash-<DATE>-client.txt
), otherwise we can not diagnose this issue.For technical support please use the Mojang Support Center.
-- I am a bot. This action was performed automagically!