Skip to content

fix(boss): use a stable id for each boss bar - #532

Open
HP-network wants to merge 1 commit into
EndstoneMC:mainfrom
HP-network:fix/boss-bar-unique-id
Open

HP-network wants to merge 1 commit into
EndstoneMC:mainfrom
HP-network:fix/boss-bar-unique-id

Conversation

@HP-network

Copy link
Copy Markdown

Summary

EndstoneBossBar::send() used the recipient player ID for both boss_id and player_id. This made multiple boss bars sent to the same player overwrite one another.

Each bar now obtains one ID from the level when it is first sent and reuses it for later updates, while player_id remains the recipient player.

Fixes #525

Testing

  • git diff --check

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.

[bug] EndstoneBossBar::send() uses player uuid to the boss

1 participant