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

Make BlockGrave use the same logic as TileEntityGrave to determine player name #19

Merged
merged 1 commit into from
Dec 3, 2023

Conversation

unilock
Copy link

@unilock unilock commented Dec 3, 2023

This PR makes BlockGrave#getPlayerRelativeBlockHardness use EntityPlayer#getGameProfile#getName instead of EntityPlayer#getDisplayName to determine the player's name, and compare it with that stored in the gravestone tile entity.

This fixes incompatibilities with mods that change the player's displayname, i.e. FTB Utilities with its "nicknames" function. The displayname of a player is much more susceptible to change than their profile's username.

BlockGrave#getPlayerRelativeBlockHardness now uses EntityPlayer#getGameProfile#getName instead of EntityPlayer#getDisplayName. The latter may change if the player has a "nickname" (see: FTB Utilities), while the former should never change.

Signed-off-by: unilock <[email protected]>
@Dream-Master Dream-Master requested a review from a team December 3, 2023 19:55
@Dream-Master Dream-Master merged commit 5db51ba into GTNewHorizons:master Dec 3, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants