You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see, the first time I compact the component, it does not fully compact.
I'm not sure if this is intended or not. I'm also unsure if this is related to #483.
As per my use-case, I'm using this in unit tests where I just care if the components are equivalent, so I just compact both the result and the expected component and see if they match - however, compacting once isn't working, I have to compact twice.
Note: In the examples above, the components were serialized to JSON with GsonComponentSerializer.gson().serialize(component).
I'm using Adventure 4.15.0.
The text was updated successfully, but these errors were encountered:
Given the following component, I have to compact it twice to get a fully compacted component.
Without compacting:
After compacting once:
After compacting twice:
After compacting three times (does not change):
As you can see, the first time I compact the component, it does not fully compact.
I'm not sure if this is intended or not. I'm also unsure if this is related to #483.
As per my use-case, I'm using this in unit tests where I just care if the components are equivalent, so I just compact both the result and the expected component and see if they match - however, compacting once isn't working, I have to compact twice.
Note: In the examples above, the components were serialized to JSON with
GsonComponentSerializer.gson().serialize(component)
.I'm using Adventure 4.15.0.
The text was updated successfully, but these errors were encountered: