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 Biome biome;
|
||||
|
||||
private Runnable surfaceInit;
|
||||
private Consumer<Biome> surfaceInit;
|
||||
private BCLBiome biomeParent;
|
||||
private Biome actualBiome;
|
||||
private BCLBiome edge;
|
||||
|
@ -233,7 +233,7 @@ public class BCLBiome {
|
|||
}
|
||||
|
||||
if (this.surfaceInit != null) {
|
||||
surfaceInit.run();
|
||||
surfaceInit.accept(actualBiome);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -320,8 +320,8 @@ public class BCLBiome {
|
|||
* @param surface {@link SurfaceRules.RuleSource} rule.
|
||||
*/
|
||||
public void setSurface(RuleSource surface) {
|
||||
this.surfaceInit = () -> {
|
||||
ResourceKey key = BiomeAPI.getBiomeKey(biome);
|
||||
this.surfaceInit = (actualBiome) -> {
|
||||
ResourceKey key = BiomeAPI.getBiomeKey(actualBiome);
|
||||
BiomeAPI.addSurfaceRule(biomeID, SurfaceRules.ifTrue(SurfaceRules.isBiome(key), surface));
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue