mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-07-10 12:47:06 +00:00
fix? sunflower spawning
This commit is contained in:
parent
7ccb16e163
commit
553adb925d
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue