Skip to content

Conversation

@Joo200
Copy link
Contributor

@Joo200 Joo200 commented Oct 9, 2023

I started a new adventure after I was able to make the changes for EngineHub/Piston#40

I applied the piston version with adventure 4.14.0 to worldedit and fixed many compilation errors and improved the usage of adventure at some points.

I tested the changes on paper but it should work fine on fabric, forge and sponge too.

However

This is a breaking change. WorldGuard uses the relocated text serializers from WorldEdit to send messages and initialize flags by using the LegacyComponentSerializer. I'm confident to replace kyori-text by shading adventure in WorldGuard or by introducing the breaking change into WG 7.1.x.

@me4502 me4502 added this to the 8.0.0 milestone Jun 8, 2024
Vilsu221 and others added 17 commits April 9, 2025 20:47
* Refactor some vanilla methods to sponge api

* Fixes

* Update api 14

* Fixes

* PR fixes

* Bring back vanilla methods
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.
…neHub#2757)

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 EngineHub#2756.
@Joo200 Joo200 force-pushed the feature/adventure-time branch from 4932f32 to bd8b6c7 Compare April 18, 2025 20:40
@Joo200 Joo200 requested a review from a team as a code owner April 18, 2025 20:40
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.

5 participants