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
@sovdeeth sovdeeth added patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. and removed needs reviews A PR that needs additional reviews labels Dec 11, 2025
@sovdeeth sovdeeth merged commit 6ca92d1 into SkriptLang:dev/patch Dec 14, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Awaiting Merge to Done - Awaiting Release in 2.14 Releases Dec 14, 2025
@skriptlang-automation skriptlang-automation bot added completed The issue has been fully resolved and the change will be in the next Skript update. and removed patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. labels Dec 14, 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. completed The issue has been fully resolved and the change will be in the next Skript update.

Projects

Status: Done - Awaiting Release

Development

Successfully merging this pull request may close these issues.

Resetting movement speed attribute sets the value incorrectly

3 participants