fix? sunflower spawning

This commit is contained in:
Lord_Cambion 2026-05-15 19:10:13 +02:00
parent 7ccb16e163
commit 553adb925d
2 changed files with 10 additions and 9 deletions

View file

@ -34,9 +34,10 @@ bool DoublePlantFeature::place(Level* level, Random* rand, int x, int y, int z)
level->setTileAndData(bx, by, bz, Tile::tallgrass2_Id, m_plantType, 0);
level->setTileAndData(bx, by + 1, bz, Tile::tallgrass2_Id, TallGrass2::UPPER_BIT | m_plantType, 0);
level->setTileAndData(bx, by + 1, bz, Tile::tallgrass2_Id, TallGrass2::UPPER_BIT | m_plantType, 0);
placed = true;
break;
}
return placed;

View file

@ -63,15 +63,15 @@ void TaigaBiome::decorate(Level *level, Random *random, int xo, int zo)
mossyBoulder.place(level, random, x, y, z);
}
}
DOUBLE_PLANT_GENERATOR->setPlantType(TallGrass2::LARGE_FERN);
for (int i = 0; i < 7; ++i)
{
int x = xo + random->nextInt(16) + 8;
int z = zo + random->nextInt(16) + 8;
int y = random->nextInt(level->getHeightmap(x, z) + 32);
DOUBLE_PLANT_GENERATOR->place(level, random, x, y, z);
DOUBLE_PLANT_GENERATOR->setPlantType(TallGrass2::LARGE_FERN);
for (int i = 0; i < 7; ++i)
{
int x = xo + random->nextInt(16) + 8;
int z = zo + random->nextInt(16) + 8;
int y = random->nextInt(level->getHeightmap(x, z) + 32);
DOUBLE_PLANT_GENERATOR->place(level, random, x, y, z);
}
}
Biome::decorate(level, random, xo, zo);