borknbeans / LightweightInventorySorting

MIT License
5 stars 3 forks source link

Chests with different types of the same item do not sort. #9

Closed Dinith21 closed 1 month ago

Dinith21 commented 1 month ago

Hi,

I've found an issue where when sorting a chest/inventory that has two or more of the same items in it, the sorter does not work properly. For example, when sorting potions that are of the same type (potion effect) but have different effect durations, the sorter does not work. The same applies to tipped arrows, and decorated pots with different patterns, and potential others.

Great mod though!

borknbeans commented 1 month ago

Thanks for taking the time to point this out, ill take a look into it

borknbeans commented 1 month ago

Ive narrowed down the cause. Looks like my logic for combining like items was trying to combine these items because they are technically the "same" and this later led to issues when sorting. Thanks for pointing it out!

borknbeans commented 1 month ago

This has been fixed and will be included in the next release. Thanks again!