knokko / custom-items-gradle

Knokko's Custom Items: Add custom items to your server, completely free of charge
MIT License
14 stars 3 forks source link

Respect order of attribute modifiers #241

Open knokko opened 1 year ago

knokko commented 1 year ago

The order of the attribute modifiers that is shown in the item lore should match the order that is configured in the Editor. Currently, this is not the case because the merge operation converts everything to and from a Set.

knokko commented 1 year ago

This is not as easy as I expected: it looks like the minecraft client can also arbitrarily reorder attribute modifiers. It looks like the only solution is adding the HIDE_ATTRIBUTES item flag and including the attribute modifiers in the lore...