Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Lulu13022002
Copy link
Contributor

@Lulu13022002 Lulu13022002 commented Dec 23, 2024

Original: #8705
The RespawnReason should probably be moved into the super class later but require bytecode rewrite

@Lulu13022002 Lulu13022002 requested a review from a team as a code owner December 23, 2024 18:46
@kennytv kennytv added the type: bug Something doesn't work as it was intended to. label Dec 24, 2024
@kennytv kennytv added type: feature Request for a new Feature. and removed type: bug Something doesn't work as it was intended to. labels Dec 25, 2024
Comment on lines -59 to -60
public Location getRespawnLocation() {
return this.respawnLocation;
Copy link
Member

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.

Copy link
Contributor

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.

Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature Request for a new Feature.
Projects
Status: Awaiting final testing
Development

Successfully merging this pull request may close these issues.

5 participants