mfnalex / ChestSort

Best sorting plugin for Minecraft / Spigot 1.14+
https://www.chestsort.de
GNU General Public License v3.0
91 stars 34 forks source link

InventoryPages still not fixed #61

Closed Makkief closed 4 years ago

Makkief commented 4 years ago

not fixed yet. It still takes InventoryPages's buttons from my inventory and put them to the chest.

mfnalex commented 4 years ago

Strange, should not happen. I will have a look tomorrow because I am not home until then

Makkief commented 4 years ago

I found the reason.

It only occurs when the name of Buttons start with '&f'.

in InventoryPageHook item.getType() == nextMat && item.getItemMeta().getDisplayName().equals(nextName))

There is a problem with check if item's displayname is same with nextName.

It works fine with &8 or &e but when I use &f, It doesn't work.

Makkief commented 4 years ago

It's really strange... I just changed the name of Button to '&e&fNext Page', and now It works fine.

I think there is no problem with the code above but &f.

mfnalex commented 4 years ago

Well thats strange. I will have a look tomorrow and will try to fix it :)

mfnalex commented 4 years ago

I can confirm that there is indeed a problem when using &f. I will have a look at it