Skip to content

fix: log armor stand equipment before it is dropped on break - #395

Open
ShortByte wants to merge 1 commit into
QuiltServerTools:masterfrom
ShortByte:master
Open

ShortByte wants to merge 1 commit into
QuiltServerTools:masterfrom
ShortByte:master

Conversation

@ShortByte

Copy link
Copy Markdown

fix: log armor stand equipment before it is dropped on break

Vanilla calls brokenByAnything, which drops all equipment and empties
every slot, before it calls kill. Logging at the kill call therefore
stored an armor stand whose equipment tag was omitted entirely, so a
rollback brought back an empty stand and the items were lost.

Log at the head of brokenByAnything instead, while the equipment is
still attached, and guard the existing kill hooks so the break is not
recorded twice. The kill hooks still cover the paths that skip
brokenByAnything (creative players, damage bypassing invulnerability).

@ShortByte
ShortByte requested a review from a team as a code owner September 6, 2026 11:33
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.

1 participant