fix: mesa colors and plateau

i tried to give the colors of the mesa eMinecraftColour_Foliage_Mesa
eMinecraftColour_Grass_Mesa
but it took the actuale value like 50 and 37 if i remmebr so it gave black and dark blue colors to leaves and grass.

then i fixed the plateau becoming bryce just adding an id check
This commit is contained in:
Lord_Cambion 2026-04-24 01:25:06 +02:00
parent a9bf54ff8f
commit 35500de3cc

View file

@ -191,12 +191,12 @@ Feature* MesaBiome::getTreeFeature(Random* random)
int MesaBiome::getFolageColor() const int MesaBiome::getFolageColor() const
{ {
return eMinecraftColour_Foliage_Mesa; return 0x9E814D;
} }
int MesaBiome::getGrassColor() const int MesaBiome::getGrassColor() const
{ {
return eMinecraftColour_Grass_Mesa; return 0x90814D;
} }
void MesaBiome::buildSurfaceAtDefault(Level* level, Random* random, void MesaBiome::buildSurfaceAtDefault(Level* level, Random* random,
@ -226,7 +226,7 @@ void MesaBiome::buildSurfaceAtDefault(Level* level, Random* random,
double pillarHeight = 0.0; double pillarHeight = 0.0;
if (isMesaPlateau) if (isMesaPlateau&& id == Biome::mesaBryce->id)
{ {
double nx = static_cast<double>((x & ~0xF) + localZ); double nx = static_cast<double>((x & ~0xF) + localZ);
double nz = static_cast<double>((z & ~0xF) + localX); double nz = static_cast<double>((z & ~0xF) + localX);
@ -390,7 +390,7 @@ MesaBiome* MesaBiome::createMutatedCopy(int newId)
if (!isMesaBase) if (!isMesaBase)
{ {
copy->setDepthAndScale(0.1f, 0.3f); copy->setDepthAndScale(0.1f, 0.2f);
} }
copy->setWaterSkyColor(this->getWaterColor(), this->getSkyColor()); copy->setWaterSkyColor(this->getWaterColor(), this->getSkyColor());