Skip to content

fix: preserve hitbox packet conversion until client removal - #468

Merged
toxicity188 merged 1 commit into
toxicity188:v3-devfrom
carragrive:v3
Nov 3, 2026
Merged

toxicity188 merged 1 commit into
toxicity188:v3-devfrom
carragrive:v3

Conversation

@carragrive

Copy link
Copy Markdown
Contributor

This addresses the metadata mismatch reported in #445.
When a hitbox is removed before its queued packets are processed, BetterModel can send living-entity metadata to a client that knows the entity as an ItemDisplay, disconnecting the player.

The change keeps track of hitbox IDs per connection instead of relying on the entity still being available in the world.

Builds and local regression checks passed on Paper and Folia 26.3.
Older MC versions and Fabric were compile-checked only.
No public API or dependency changes.

Before:
https://github.com/user-attachments/assets/a192a1dd-5d79-43ab-937f-cbefff96d6af

After:
https://github.com/user-attachments/assets/9345bdeb-6831-40c2-af56-178543f8a620

Track disguised hitbox IDs per connection so queued living-entity metadata cannot reach ItemDisplays after the server entity disappears. Apply packet-ordered cleanup across Bukkit adapters and Fabric, and complete suppressed write promises.
@toxicity188
toxicity188 merged commit f92f9bb into toxicity188:v3-dev Nov 3, 2026
2 checks 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.

2 participants