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).
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.