Small perf improvement for checking rivers or glowstone.