Files
MinecraftCommunityEdition-c…/Minecraft.World/AetherBiome.cpp
Bonnie 00a10d61fd fix wrong color aether sky/fog in release
genuinely how did this work fine in debug lol
2026-03-03 16:58:17 -06:00

56 lines
1.2 KiB
C++

#include "stdafx.h"
#include "AetherBiome.h"
#include "AetherBiomeDecorator.h"
#include "net.minecraft.world.entity.monster.h"
#include "net.minecraft.world.level.tile.h"
#include "net.minecraft.world.level.levelgen.feature.h"
AetherBiome::AetherBiome(int id) : Biome(id)
{
// Clear all mob spawning lists
enemies.clear();
friendlies.clear();
friendlies_chicken.clear();
friendlies_wolf.clear();
waterFriendlies.clear();
// Aether surface blocks
topMaterial = (byte) Tile::aetherGrass_Id;
material = (byte) Tile::aetherDirt_Id;
// Use custom decorator
delete decorator;
decorator = new AetherBiomeDecorator(this);
}
Feature *AetherBiome::getTreeFeature(Random *random)
{
// 10% chance for golden oak, 90% for skyroot
if (random->nextInt(10) == 0)
{
return new GoldenOakTreeFeature(false);
}
return new SkyrootTreeFeature(false);
}
Feature *AetherBiome::getGrassFeature(Random *random)
{
// Regular tall grass (type 1) — will be colored by biome grass color
return new TallGrassFeature(Tile::tallgrass_Id, 1);
}
int AetherBiome::getSkyColor(float temp)
{
return 0x9ecbff;
}
int AetherBiome::getGrassColor()
{
return 0x8ab69a;
}
int AetherBiome::getFolageColor()
{
return 0x8ab69a;
}