Small changes
This commit is contained in:
parent
c82e2900f6
commit
d983613872
1 changed files with 5 additions and 5 deletions
|
@ -27,7 +27,7 @@ public class BCLBiome {
|
||||||
private final ResourceLocation biomeID;
|
private final ResourceLocation biomeID;
|
||||||
private final Biome biome;
|
private final Biome biome;
|
||||||
|
|
||||||
private Runnable surfaceInit;
|
private Consumer<Biome> surfaceInit;
|
||||||
private BCLBiome biomeParent;
|
private BCLBiome biomeParent;
|
||||||
private Biome actualBiome;
|
private Biome actualBiome;
|
||||||
private BCLBiome edge;
|
private BCLBiome edge;
|
||||||
|
@ -232,8 +232,8 @@ public class BCLBiome {
|
||||||
structures.forEach(s -> BiomeAPI.addBiomeStructure(BiomeAPI.getBiomeKey(actualBiome), s));
|
structures.forEach(s -> BiomeAPI.addBiomeStructure(BiomeAPI.getBiomeKey(actualBiome), s));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.surfaceInit != null){
|
if (this.surfaceInit != null) {
|
||||||
surfaceInit.run();
|
surfaceInit.accept(actualBiome);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -320,8 +320,8 @@ public class BCLBiome {
|
||||||
* @param surface {@link SurfaceRules.RuleSource} rule.
|
* @param surface {@link SurfaceRules.RuleSource} rule.
|
||||||
*/
|
*/
|
||||||
public void setSurface(RuleSource surface) {
|
public void setSurface(RuleSource surface) {
|
||||||
this.surfaceInit = () -> {
|
this.surfaceInit = (actualBiome) -> {
|
||||||
ResourceKey key = BiomeAPI.getBiomeKey(biome);
|
ResourceKey key = BiomeAPI.getBiomeKey(actualBiome);
|
||||||
BiomeAPI.addSurfaceRule(biomeID, SurfaceRules.ifTrue(SurfaceRules.isBiome(key), surface));
|
BiomeAPI.addSurfaceRule(biomeID, SurfaceRules.ifTrue(SurfaceRules.isBiome(key), surface));
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue