Every fourth night the mobs stop wandering and come straight for you: up walls or through them if that's faster. You've got until sunrise.