Sponge icon indicating copy to clipboard operation
Sponge copied to clipboard

Fix multiple RespawnPlayerEvents issues

Open Yeregorix opened this issue 2 years ago • 0 comments

  1. New player instance was not captured properly (Recreate#entity() and Recreate#recreatedPlayer() were returning the same object).
  2. Recreate#setDestinationPosition(Vector3d) was ignored (consequence of 1. ).
  3. SelectWorld#setDestinationWorld() was ignored.
  4. Post#originalDestinationWorld() and Post#destinationWorld() were returning incorrect values.
  5. API ServerPlayer#respawn() was not firing SelectWorld but only Recreate and Post events.

Yeregorix avatar Jun 25 '22 17:06 Yeregorix