GTNewHorizons / ServerUtilities

GNU Lesser General Public License v3.0
27 stars 12 forks source link

Fix various teleportation problems #51

Closed Lyfts closed 5 months ago

Lyfts commented 5 months ago

Closes: https://github.com/GTNewHorizons/ServerUtilities/issues/49

  1. Fixes the world not loading when teleporting from the end. (Stolen from old FTBLib here)
  2. 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.
  3. 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.