Skip to content

Conversation

@sovdeeth
Copy link
Member

@sovdeeth sovdeeth commented Dec 7, 2025

Problem

Resetting a player's walk speed would use the global attribute default of 0.7 rather than the player entity type default of 0.1. This may apply to many more attribute defaults.

Solution

Uses the entity type's getDefaultAttributes to determine the base attribute value, as is intended by Paper API. See the clarification and deprecation of the method we currently use here: PaperMC/Paper#13343

Testing Completed

Manual confirmation.

Supporting Information


Completes: #8097
Related: none
AI assistance: none

@sovdeeth sovdeeth requested a review from a team as a code owner December 7, 2025 02:05
@sovdeeth sovdeeth added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. 2.14 Targeting a 2.14.X version release. labels Dec 7, 2025
@sovdeeth sovdeeth requested review from Absolutionism and Efnilite and removed request for a team December 7, 2025 02:05
@skriptlang-automation skriptlang-automation bot added the needs reviews A PR that needs additional reviews label Dec 7, 2025
@sovdeeth sovdeeth linked an issue Dec 7, 2025 that may be closed by this pull request
1 task
@sovdeeth sovdeeth moved this to In Review in 2.14 Releases Dec 7, 2025
@github-project-automation github-project-automation bot moved this from In Review to Awaiting Merge in 2.14 Releases Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.14 Targeting a 2.14.X version release. bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. needs reviews A PR that needs additional reviews

Projects

Status: Awaiting Merge

Development

Successfully merging this pull request may close these issues.

Resetting movement speed attribute sets the value incorrectly

3 participants