Sponge
Sponge copied to clipboard
RespawnPlayerEvent.SelectWorld does not consider respawn blocks
Affected Product(s)
SpongeVanilla
Version
1.21.1-12.0.0-SNAPSHOT
Operating System
Linux
Java Version
21
Plugins/Mods
Irrelevant
Describe the bug
RespawnPlayerEvent.SelectWorld only affects the $$5 variable. $$2 is null if the player sets their bed spawn, destroys the bed, then respawns, then respawns again. This will cause the final return statement to be hit, which will default to overworld.
The missingRespawnBlock
statement is hit after the first respawn.
Link to logs
No response