Hi, in my mod I want to do a custom chest. So I create the block, the tileentity, the container and the GUI following the tutorial in the wiki. My problem is that if someone breaks the block (chest) while someone else has the gui of the chest open, the gui doesn't close. This bug can be use to duplicate items because, after the breaking of the chest, the items in it will be droped, but you can either pick up the items in the gui even if the chest is broken.
If someone could help, it will be great. Thank you very mush in advance.