int startX = (chunkX << 4) + 2;
int startZ = (chunkZ << 4) + 2;
StructureVillagePieces.Start startPiece = new StructureVillagePieces.Start(world.getWorldChunkManager(), 0, random, startX, startZ, villagePieces, size);
// Apply the villageType setting
LocalWorld worldTC = WorldHelper.toLocalWorld(world);
LocalBiome currentBiome = worldTC.getBiome(startX, startZ);
BiomeConfig config = currentBiome.getBiomeConfig();
if (config != null)
{
// Ignore removed custom biomes
changeToSandstoneVillage(startPiece, config.villageType == VillageType.sandstone);