[Changes] Make sure BCLBiomes do not keep cyclic/order dependant references
This commit is contained in:
parent
abaef11682
commit
29b8e96bbe
12 changed files with 117 additions and 107 deletions
|
@ -117,12 +117,15 @@ public class CustomFogRenderer {
|
|||
|
||||
private static boolean shouldIgnore(Level level, int x, int y, int z) {
|
||||
Biome biome = level.getBiome(MUT_POS.set(x, y, z)).value();
|
||||
return BiomeAPI.getRenderBiome(biome) == BCLBiomeRegistry.EMPTY_BIOME;
|
||||
return BCLBiomeRegistry.isEmptyBiome(BiomeAPI.getRenderBiome(biome));
|
||||
}
|
||||
|
||||
private static float getFogDensityI(Level level, int x, int y, int z) {
|
||||
Biome biome = level.getBiome(MUT_POS.set(x, y, z)).value();
|
||||
BCLBiome renderBiome = BiomeAPI.getRenderBiome(biome);
|
||||
if (renderBiome == null) {
|
||||
return BCLBiomeRegistry.EMPTY_BIOME.getFogDensity();
|
||||
}
|
||||
return renderBiome.getFogDensity();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue