Inventory Essentials (Fabric Edition)

Inventory Essentials (Fabric Edition)

424k Downloads

Tranfer All in wrong order

Morgenkaff opened this issue ยท 1 comments

commented

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

commented

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..]