putting items in chests in singleplayer, then quitly logging out will make the chest items revert to the way they were before you opened the chest, but your inventory will stay the say, thus deleting items (if done in reverse items can be duplicated)