Check if location is in the same chunk before closing inventory.