Generator optimization
This commit is contained in:
parent
8e041e0e42
commit
92d4ccab6c
4 changed files with 26 additions and 2 deletions
|
@ -8,7 +8,7 @@
|
||||||
loader_version=0.10.6+build.214
|
loader_version=0.10.6+build.214
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 0.6.2-beta
|
mod_version = 0.6.3-beta
|
||||||
maven_group = ru.betterend
|
maven_group = ru.betterend
|
||||||
archives_base_name = better-end
|
archives_base_name = better-end
|
||||||
|
|
||||||
|
|
|
@ -108,6 +108,21 @@ public class EndBiomes {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
LAND_BIOMES.getBiomes().forEach((endBiome) -> {
|
||||||
|
Biome biome = biomeRegistry.get(endBiome.getID());
|
||||||
|
endBiome.setActualBiome(biome);
|
||||||
|
});
|
||||||
|
|
||||||
|
VOID_BIOMES.getBiomes().forEach((endBiome) -> {
|
||||||
|
Biome biome = biomeRegistry.get(endBiome.getID());
|
||||||
|
endBiome.setActualBiome(biome);
|
||||||
|
});
|
||||||
|
|
||||||
|
SUBBIOMES.forEach((endBiome) -> {
|
||||||
|
Biome biome = biomeRegistry.get(endBiome.getID());
|
||||||
|
endBiome.setActualBiome(biome);
|
||||||
|
});
|
||||||
|
|
||||||
CLIENT.clear();
|
CLIENT.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,7 @@ public class EndBiome {
|
||||||
|
|
||||||
private final float fogDensity;
|
private final float fogDensity;
|
||||||
private EndFeature structuresFeature;
|
private EndFeature structuresFeature;
|
||||||
|
private Biome actualBiome;
|
||||||
|
|
||||||
public EndBiome(BiomeDefinition definition) {
|
public EndBiome(BiomeDefinition definition) {
|
||||||
biome = definition.build();
|
biome = definition.build();
|
||||||
|
@ -157,4 +158,12 @@ public class EndBiome {
|
||||||
public EndFeature getStructuresFeature() {
|
public EndFeature getStructuresFeature() {
|
||||||
return structuresFeature;
|
return structuresFeature;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setActualBiome(Biome biome) {
|
||||||
|
this.actualBiome = biome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Biome getActualBiome() {
|
||||||
|
return this.actualBiome;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,7 +85,7 @@ public class BetterEndBiomeSource extends BiomeSource {
|
||||||
mapLand.clearCache();
|
mapLand.clearCache();
|
||||||
mapVoid.clearCache();
|
mapVoid.clearCache();
|
||||||
}
|
}
|
||||||
return biomeRegistry.get(endBiome.getID());
|
return endBiome.getActualBiome();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue