GUI Items Duplication Bug

Published by Darkromano on
Status
Fixed
Issue description

Basicly when you open a GUI from an Item and drop this item all the items in inventory duplicate

My process: I just followed the normal tutorial to make a item that can have an inventory.

Video:

https://imgur.com/a/66cLPKj

 

NOW WITH WORKSPACE

Issue comments

Workaround doesn't work, items disappear from quiver if you try to use in the off-hand

best workaround is just to add procedure into gui that checks every tick if player holds given item in hand, if not, close all guis

easiest way to do this is

If: Not: Item in main-hand of (target entity) = (item)
    close any GUI open for (target entity)

you could also add "or" after "not" and add off-hand but this will still have a small dupe exploit cuz you can just press F in the inventory to swap items between hands