Cleanup and Speed Improvement of SurfaceRules/Structures (paulevsGitch/BetterNether#485, paulevsGitch/BetterEnd#420)

This commit is contained in:
Frank 2022-01-26 17:56:54 +01:00
parent 01f728c282
commit baf1e0f4b1
10 changed files with 144 additions and 189 deletions

View file

@ -288,7 +288,7 @@ public class BCLBiome extends BCLBiomeSettings {
this.surfaceInit = (actualBiome) -> {
ResourceKey key = BiomeAPI.getBiomeKey(actualBiome);
if (key == null) {
BCLib.LOGGER.warning("BCL Biome " + biomeID + " don't have registry key!");
BCLib.LOGGER.warning("BCL Biome " + biomeID + " does not have registry key!");
}
else {
BiomeAPI.addSurfaceRule(biomeID, SurfaceRules.ifTrue(SurfaceRules.isBiome(key), surface));
@ -304,7 +304,6 @@ public class BCLBiome extends BCLBiomeSettings {
*/
public void setFeatures(Map<Decoration, List<Supplier<PlacedFeature>>> features) {
this.features = features;
BiomeAPI.addStepFeaturesToBiome(getBiome(), features);
}
/**