Duping Bug with IE Storage Crates
Robocraft999 opened this issue ยท 1 comments
Describe the bug
Storage crates (maybe shulkerboxes too but I didn't tested them) get stacked even if they have different content and the content gets duplicated (because you have e.g. 2 crates with the same content). The content of the second crate gets deleted btw.
To Reproduce
Steps to reproduce the behavior:
- put a storage crate with suff in it in the backpack
- sort the backpack
- put another storage crate in the backpack (empty of filled)
- sort again
Expected behavior
Storage crates with different content get not stacked.
Required informations (please complete the following information):
- Mod version: 1.18.2 - 7.1.8
- Mod Loader: Forge (only tested forge)
Additional context
Has something to do with the sorting I guess.
Edit: Maybe change ItemStack.isSame()
(dont respects tags) to ItemStack.isSameItemSameTags()
here: https://github.com/Tiviacz1337/Travelers-Backpack/blob/1.18.2/src/main/java/com/tiviacz/travelersbackpack/inventory/sorter/ContainerSorter.java#L216