Changelog
- Initial implementation of
MovementSpeedHandler
to adjust player movement speed based on block types. - Integration with
ServerTickEvents
for periodic updates.
Fixed
- Corrected the use of
EntityAttributeModifier
constructor:- Replaced
UUID
withIdentifier
for speed modifier ID to align with the expected constructor parameters. - Updated
SPEED_MODIFIER_UUID
toSPEED_MODIFIER_ID
as anIdentifier
.
- Replaced
- Resolved type mismatch in
.getModifier
method by usingIdentifier
instead ofUUID
.
Changed
- Refactored
adjustPlayerSpeed
method:- Applied the correct constructor for
EntityAttributeModifier
. - Added error handling for missing
EntityAttributeInstance
.
- Applied the correct constructor for
- Updated
resetPlayerSpeed
method to useIdentifier
for retrieving and removing speed modifiers.
Full Changelog: https://github.com/MEGATREX4/pathspeed/compare/1.21_1.0.0...1.0.1_1.21-1.21.1