Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutomaticInventory AutoSort Inventory loses items when using ShulkerPacks #33

Open
MattAKAFred opened this issue Jun 30, 2020 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested

Comments

@MattAKAFred
Copy link

Probably also affects other backpack plugins, but my experience is specific to https://www.spigotmc.org/resources/shulker-backpacks-1-13-1-15.67466/ - Basically, opening a shulker pack directly from inventory and placing items inside results in item loss thanks to autosorting happening immediately on close, overwriting shulker contents. A small delay for pack to close first then sort could probably solve.

@Momshroom
Copy link

Momshroom commented Jun 30, 2020 via email

@RoboMWM
Copy link
Member

RoboMWM commented Jul 1, 2020

Interesting, autosort for inventories besides the player's should be happening on open not close. Wonder if a recently-pulled PR changed this behavior.

No idea what CMI does thanks to it being closed source so all I can go on there is the reputation of the developer, which isn't good given the other projects he maintains (or rather, maintained).

@RoboMWM
Copy link
Member

RoboMWM commented Sep 21, 2020

Ok, I see now, you meant the player's inventory sorting. I'm not sure how that plugin is keeping track of where it is, but I'd assume it's holding onto a specific inventory slot ID, which I can now see why it'd be affected by player inventory sorting. I'd imagine a better design would be to tag the item itself (with NBT or similar, or at the very least hold the ItemStack reference, which I imagine only goes away if it's dropped from inventory) - that would be the proper way to fix it on the backpack side.

Regardless, in 1.16 it's no longer possible to tell when the player closes their own inventory.

@RoboMWM RoboMWM added enhancement New feature or request help wanted Extra attention is needed question Further information is requested labels Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants