Fixes the world not loading when teleporting from the end. (Stolen from old FTBLib here)
Send player abilities when teleporting inter dim so players don't lose their ability to fly if enabled and also send XP packet so it won't show 0 xp on client side after tping.
If the player is riding an entity they are dismounted before both are teleported to avoid the same problem as tping from the end causes.
Unrelated to the ticket but I also moved the depth test call for the sidebar buttons to cover both buttons and text. This is done to ensure that the buttons are always drawn on top of the potion labels.
Closes: https://github.com/GTNewHorizons/ServerUtilities/issues/49
Unrelated to the ticket but I also moved the depth test call for the sidebar buttons to cover both buttons and text. This is done to ensure that the buttons are always drawn on top of the potion labels.