-
-
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
Fix inconsistencies between offline/online spawn position getter #11960
base: main
Are you sure you want to change the base?
Conversation
*/ | ||
@Nullable | ||
public Location getRespawnLocation(); |
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 am wondering, what really is the rule for interfaces and explicit public
modifiers? I have seen files/PRs with and I have seen files/PRs without.
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.
As far as I know, it was an unnecessary rule enforced by spigot.
/** | ||
* Gets the Location where the player will spawn at, null if they | ||
* don't have a valid respawn point. | ||
* | ||
* @return respawn location if exists, otherwise null. | ||
*/ |
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.
The Javadocs have been removed on this method. Is this intentional, or are you going to be adding different Javadocs soon?
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.
iirc it should now inherit from offline player?
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 don't think JDs are inherited by default?
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.
oh, no, nvm, they are, ineritDoc is for additive
c02f0ef
to
d7b2c43
Compare
This also fix Player#getRespawnLocation that consume the respawn anchor in the nether if binded |
Original: #8243
Also deprecated the old HumanEntity#getPotentialRespawnLocation since it doesn't track the respawn angle.