Traveler's Backpack [Fabric]

Traveler's Backpack [Fabric]

11M Downloads

Inappropriate sorting with Inventory Tweaks Renewed

GreenBudgie opened this issue ยท 3 comments

commented

When using sorting from Inventory Tweaks Renewed (www.curseforge.com/minecraft/mc-mods/inventory-tweaks-renewed) it places items in the backpack's crafting slots at first. I know that InvTweaks is in beta for 1.16.4 but I think that this bug is related to slot numeration inside of a backpack. As I can see, crafting slots are numbered 0-8 and InvTweaks treats them as the first slots in the inventory, placing items there at first.

To reproduce: install the last version of InvTweaks Renewed (invtweaks-1.16.4-1.0.1) and sort the backpack's inventory.

Expected behavior: items are placed at the top slots of backpack when sorting.

Unsorted backpack:
unsorted
Sorted backpack:
sorted

Mod version: TravelersBackpack-1.16.4-5.3.7

commented

The crafting grid should be unsortable btw. I'll not do anything with this atm, maybe new versions of IT R will add api or something that I'll allow me to configure sorting in container

commented

This issue may be solved by inserting these lines into invtweaks-client.toml config file at [sorting] section

[[sorting.containerOverrides]]
    containerClass = "com.tiviacz.travelersbackpack.inventory.container.TravelersBackpackItemContainer"
    sortRange = "10-48"

[[sorting.containerOverrides]]
    containerClass = "com.tiviacz.travelersbackpack.inventory.container.TravelersBackpackTileContainer"
    sortRange = "10-48"

It prevents InvTweaks from sorting crafting and tool slots. I may suggest to add this configuration by default to InvTweaks creator.

commented

I didn't know about this. Indeed it's amazing
Pinned it on my discord so anyone can use it, your name is referenced.