Bone meal fix

This commit is contained in:
paulevsGitch 2021-02-14 20:02:02 +03:00
parent 3719ffc3d9
commit 2571ab7ba8
2 changed files with 6 additions and 0 deletions

View file

@ -80,6 +80,9 @@ public class BonemealUtil {
GrassList list = null;
if (map != null) {
list = map.get(terrain);
if (list == null) {
list = GRASS_TYPES.get(terrain);
}
}
else {
list = GRASS_TYPES.get(terrain);

View file

@ -40,6 +40,9 @@ public class EndBiome {
public EndBiome(BiomeDefinition definition) {
this.mcID = definition.getID();
this.readStructureList();
if (structuresFeature != null) {
definition.addFeature(structuresFeature);
}
this.biome = definition.build();
this.fogDensity = Configs.BIOME_CONFIG.getFloat(mcID, "fog_density", definition.getFodDensity());
this.genChanceUnmutable = Configs.BIOME_CONFIG.getFloat(mcID, "generation_chance", definition.getGenChance());