From 553adb925d4bd0ad22e3b735fd4ab84c9ceb0d20 Mon Sep 17 00:00:00 2001 From: Lord_Cambion Date: Fri, 15 May 2026 19:10:13 +0200 Subject: [PATCH] fix? sunflower spawning --- Minecraft.World/DoublePlantFeature.cpp | 3 ++- Minecraft.World/TaigaBiome.cpp | 16 ++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/Minecraft.World/DoublePlantFeature.cpp b/Minecraft.World/DoublePlantFeature.cpp index 7c5a9f6f..42276933 100644 --- a/Minecraft.World/DoublePlantFeature.cpp +++ b/Minecraft.World/DoublePlantFeature.cpp @@ -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; diff --git a/Minecraft.World/TaigaBiome.cpp b/Minecraft.World/TaigaBiome.cpp index 7e9d9e58..6fa60578 100644 --- a/Minecraft.World/TaigaBiome.cpp +++ b/Minecraft.World/TaigaBiome.cpp @@ -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);