John000708/Barrels

No-meaning formatting code is prohibited in mc 1.16.

Closed this issue · 1 comments

Description (Required)

When I use Barrels on MC 1.16, It returned me the Item with 1 empty lore.
I investigated the cause of that, When We use formatting code to no meaning in MC 1.16, the letter removed automatically.
For example, "§b§a§r§r§e§l" turns "§e§l".
That is It breaks Barrel item's LORE_DATA.
So Barrel couldn't judge item correctly, and returns a item with lore "§e§l".
Also we can't insert item to Barrel with already something in. Normal item and broken lore added item is not "similar".

Steps to reproduce the Issue (Required)

Insert something to empty Barrel.

Expected behavior (Required)

Insert items and returns me items correctly.

Server Log / Error Report

No Log.

Environment (Required)

> sf versions
[12:27:37 INFO]: Paper v1_16_R1
[12:27:37 INFO]:
[12:27:37 INFO]: CS-CoreLib vDEV - 88 (git 6a39a9e7)
[12:27:37 INFO]: Slimefun vDEV - 581 (git c2b0121a)
[12:27:37 INFO]: Backwards compatiblity enabled!
[12:27:37 INFO]:
[12:27:37 INFO]: Installed Addons (1)
[12:27:37 INFO]: Barrels vDEV - 11 (git abecba9)
> pl
[12:27:39 INFO]: Plugins (3): Barrels, CS-CoreLib, Slimefun

Same with #28