minecraft:air is not supported in show_item for 1.21+ clients and will crash if received:
Caused by: io.netty.handler.codec.DecoderException: Failed to decode: Failed to parse either. First: Failed to parse either. First: Item must not be minecraft:air; Second: Not a string; Second: No key value in MapLike[{action:"show_item",contents:{count:0L,id:"minecraft:air"}}] {color:"gray",extra:[{"":"PlayerName"},{"":": "},{extra:[{color:"white",hoverEvent:{action:"show_item",contents:{count:0L,id:"minecraft:air"}},translate:"chat.square_brackets",with:[{extra:[{translate:"block.minecraft.air"}],text:""}]},{"":" message"}],text:""}],text:""}
I'm not sure about Adventure's stance on this sort of validation. Should the implementation source be responsible for this instead (i.e., Paper)?
ref: HoverEventSource#asHoverEvent and possibly adventure's serializers
minecraft:air
is not supported in show_item for 1.21+ clients and will crash if received:I'm not sure about Adventure's stance on this sort of validation. Should the implementation source be responsible for this instead (i.e., Paper)?
ref: HoverEventSource#asHoverEvent and possibly adventure's serializers