Replaced getTypes invocation in ensureHasTypes with a direct reference to types, preventing infinite recursion (#6284)

The direct reference is checked via ternary and reports if the set is empty, this is likely to result in log spam if modders don't assign types to their biomes
This commit is contained in:
DaemonUmbra 2019-11-01 14:24:01 -04:00 committed by LexManos
parent ebd463e92f
commit c044f3b0c4
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ public class BiomeDictionary
if (!hasAnyType(biome))
{
makeBestGuess(biome);
LOGGER.warn("No types have been added to Biome {}, types have been assigned on a best-effort guess: {}", biome.getRegistryName(), getTypes(biome));
LOGGER.warn("No types have been added to Biome {}, types have been assigned on a best-effort guess: {}", biome.getRegistryName(), !getBiomeInfo(biome).types.isEmpty() ? getBiomeInfo(biome).types : "could not guess types");
}
}