This logic is different. `observers` contains entities other than players. The new code doesn't account for that.