Check of block is valid every time player closes inventory