protected bool RequiredChunksExist(IWorldManager world, UniversalCoords startingPoint, int xSize, int ySize, int zSize) { if (startingPoint.WorldY + ySize > 127) return false; UniversalCoords endPoint = UniversalCoords.FromWorld(startingPoint.WorldX + xSize, startingPoint.WorldY, startingPoint.WorldZ + zSize); if (startingPoint.ChunkX == endPoint.ChunkX && startingPoint.ChunkZ == endPoint.ChunkZ) return true; for (int x = startingPoint.ChunkX; x <= endPoint.ChunkX; x++) for (int z = startingPoint.ChunkZ; z <= endPoint.ChunkZ; z++) if (world.GetChunkFromChunkSync(x, z) == null) return false; return true; }