CoreProtect

CoreProtect

1M Downloads

[bug] Items with "|" in display name are incorrectly displayed

mxson opened this issue ยท 0 comments

commented

This can be reproduced with an item such as: /i dsword 1 name:asdf_|_asdf_|_asdf, and another one that would function normally: /i dsword 1 name:asdf_asdf_asdf

The bugged item appears like this in lookups.

Normal functionality, using the second item provided in my example would appear like this:

This can be especially problematic for items such as this:

Which display as this in lookups:

I assume it's caused by these lines:

String[] data = value.split("\\|", 3);

String[] data = value.split("\\|", 3);

Thanks!