private static int GetHeight(TAG_Compound[] sections, int x, int z, int yStart = 255) { int h = yStart; for (; h >= 0; h--) { byte b = GetBlock(sections, x, h, z); if (b != 0) return h; } return -1; }