totorewa / totos-carpet-tweaks

Adds a few QoL changes to the SMP experience
GNU Lesser General Public License v3.0
15 stars 5 forks source link

Return spectators if they join server in survival and have a survival position saved #5

Closed totorewa closed 3 years ago

totorewa commented 3 years ago

Reverts change in f83aecb and uses setGameMode in the interaction manager as a hook for the return spectators event.

When attempting to return a player to a survival position it will clear any stored survival positions against that player as not to potentially replay the teleportation.

Fixes #4