Sponge icon indicating copy to clipboard operation
Sponge copied to clipboard

RespawnPlayerEvent.SelectWorld does not consider respawn blocks

Open SamB440 opened this issue 6 months ago • 0 comments

Affected Product(s)

SpongeVanilla

Version

1.21.1-12.0.0-SNAPSHOT

Operating System

Linux

Java Version

21

Plugins/Mods

Irrelevant

Describe the bug

image

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

SamB440 avatar Aug 19 '24 18:08 SamB440