private bool IsSunLight(Vector3i chunkPos, Vector3i localPos, int worldY) { Chunk2D <short> chunk = rays.GetChunk(chunkPos.x, chunkPos.z); return(chunk != null && chunk.Get(localPos.x, localPos.z) <= worldY); }