Recreate /uhc icon inventory per command invocation
Closed this issue · 0 comments
Eluinhost commented
Currently if you cancel a click event on a zero stack itemstack it deletes the stack as a sideeffect causing all players to not see the new stack. If we recreate the inventory on command run each invocation will have it's own instance so disappearing stacks will only effect that player.
While we're at it we should disable all drag events too, just in case it is possible somehow to break the inventories that way (the initial click event to trigger the drag is cancelled so drag should be impossible).
Also require a fix for out of bounds in click event checking inventory size instead of icons size