ToberoCat/GuiEngine

Single line of lore does not displayed

Closed this issue · 4 comments

I was following the User Beginner Guide and I found when I add single lore to a item, it does not displayed
image
image

I found that ParserContext.getOptionalStringArray() used foreach to process the lore array, but when there have only one lore, the getOptionalNode() returned JsonNode is String instead of Array
image
image

Thanks for reporting this issue. I'll take a look at fixing it right now.

This is my solution:
image
It works correctly

Thanks I've used your implementation with some minor changes. Bug will now be fixed in the newer version of the plugin

If you happen to come across a bug and manage to resolve it locally, please feel free to submit a pull request.