| 31 | } |
| 32 | |
| 33 | Maybe<TreeVariant> BiomePlaceables::firstTreeType() const { |
| 34 | for (auto const& itemDistribution : itemDistributions) { |
| 35 | for (auto const& biomeItem : itemDistribution.allItems()) { |
| 36 | if (biomeItem.is<TreePair>()) |
| 37 | return biomeItem.get<TreePair>().first; |
| 38 | } |
| 39 | } |
| 40 | return {}; |
| 41 | } |
| 42 | |
| 43 | Biome::Biome() { |
| 44 | mainBlock = EmptyMaterialId; |
no test coverage detected