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 authored and LexManos committed 2019-11-01 11:24:00 -07:00
1 parent ebd463e92f
commit c044f3b0c4
1 file changed
+1 -1
@@ -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");
}
}