TwelveIterationMods / InventoryEssentials

Minecraft Mod. Basic inventory tweaks designed to supplement Inventory Sorter.
https://mods.twelveiterations.com/mc/inventory-essentials
Other
11 stars 3 forks source link

Tranfer All in wrong order #26

Closed Morgenkaff closed 8 months ago

Morgenkaff commented 10 months ago

Minecraft Version

1.20.4

Mod Loader

Fabric

Mod Loader Version

0.91.3

Mod Version

10.0.1

Balm Version

9.0.4

Describe the Issue

When tranferring all of the inventory/chest content the order of the items seems to get reversed, and the items on the hotbar gets moved too.

I think it's best explained with this: inventory_tweaks

I'm not completely sure that it's intended this way, so sorry if this isn't an issue.

Logs

https://api.paste.ee/p/6zNeA

Do you use any performance-enhancing mods (e.g. OptiFine) or custom server distributions (e.g. SpongeForge)?

No response

Morgenkaff commented 9 months ago

Sorry for the late reply, but thank you for the fast fix. It seems like it's only half solved, though. The order is correct now, but it transfers to the hotbar too, now.

trans_all.webm

I'll guess it's something as changin for (int i = slots.size() - 1; i >= 0; i--) { to for (int i = slots.size() - 10; i >= 0; i--) {

But I'm in no way a minecraft modder, and don't know if the hotbar is event part of "slots". If you don't have time, I'll try to look into it.

[Updated: couldn't add 9 to 1, apparently..]