-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parity for respawn events #11792
base: main
Are you sure you want to change the base?
Parity for respawn events #11792
Conversation
paper-api/src/main/java/io/papermc/paper/event/player/AbstractRespawnEvent.java
Outdated
Show resolved
Hide resolved
5875bf1
to
2436b63
Compare
2436b63
to
8cf7eab
Compare
public Location getRespawnLocation() { | ||
return this.respawnLocation; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PlayerRespawnEvent supports mutability, this change removes that behavior as AbstractRespawnEvent clones it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was discussed, there is a setter for the respawn location, so this is intential bulletproofing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess, just not sure about doing changes like these silently.
Original: #8705
The RespawnReason should probably be moved into the super class later but require bytecode rewrite