Skip to content

Conversation

@dordsor21
Copy link
Member

fixes #3179

octylFractal and others added 4 commits April 26, 2025 10:54
….3.x

Add ability to copy state string from info tool

Co-authored-by: ssquadteam <sahib.2009.sa@gmail.com>
Remove a redundant passenger check, as entity.save() returns false in that case.

This also causes leash knots to not be copied. I don't think this is a problem because:
- They would not be saved to disk, it's misleading for users that they appear.
- Pasted leashed mobs still think they're leashed to the original position and get unleashed* - no change in behaviour.
    \* Unless they're pasted close enough to the original position, in which case this has better behaviour because they create their own leash_knot entity.
Hacky workaround by overwriting the text3 StyleSerializer class with our own modified copy.
Note that the hover events "show_entity" and "show_item" aren't supported as they no longer take a rendered component, but just the NBT structure.

Behavior remains unchanged if 1.21.4- is detected.

Fixes #2756.
@dordsor21 dordsor21 requested a review from a team as a code owner April 26, 2025 10:32
@github-actions github-actions bot added the chore label Apr 26, 2025
@dordsor21 dordsor21 force-pushed the chore/upstream-cherry-pick branch from ea20641 to 54a7622 Compare April 28, 2025 15:50
@dordsor21 dordsor21 requested a review from SirYwell April 28, 2025 15:50
@SirYwell SirYwell force-pushed the chore/upstream-cherry-pick branch from 88706bb to dfe642b Compare May 10, 2025 07:22
@NotMyFault NotMyFault merged commit f524cf0 into main May 10, 2025
11 checks passed
@NotMyFault NotMyFault deleted the chore/upstream-cherry-pick branch May 10, 2025 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1.21.5 - clickEvent not updated to click_event (same for hoverEvent)

8 participants