Void balancing
This commit is contained in:
parent
a651cb932e
commit
78c85b5b8b
2 changed files with 13 additions and 13 deletions
|
@ -140,16 +140,16 @@ public class BCLibEndBiomeSource extends BCLBiomeSource {
|
||||||
endLandBiomePicker.addBiome(bclBiome);
|
endLandBiomePicker.addBiome(bclBiome);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!key.equals(Biomes.SMALL_END_ISLANDS)
|
if (BiomeAPI.wasRegisteredAsEndLandBiome(key) || includeLand.contains(key.toString())) {
|
||||||
&& !key.equals(Biomes.THE_END)
|
|
||||||
&&
|
|
||||||
(BiomeAPI.wasRegisteredAsEndVoidBiome(key)
|
|
||||||
|| BiomeAPI.wasRegisteredAsEndLandBiome(key)
|
|
||||||
|| includeVoid.contains(key.toString())
|
|
||||||
|| includeLand.contains(key.toString())
|
|
||||||
)
|
|
||||||
)
|
|
||||||
endLandBiomePicker.addBiome(bclBiome);
|
endLandBiomePicker.addBiome(bclBiome);
|
||||||
|
endVoidBiomePicker.addBiome(bclBiome);
|
||||||
|
}
|
||||||
|
if (!key.equals(Biomes.SMALL_END_ISLANDS) && !key.equals(Biomes.THE_END)
|
||||||
|
&& (BiomeAPI.wasRegisteredAsEndVoidBiome(key) || includeVoid.contains(key.toString()))
|
||||||
|
) {
|
||||||
|
endVoidBiomePicker.addBiome(bclBiome);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -352,8 +352,8 @@ public class BCLibEndBiomeSource extends BCLBiomeSource {
|
||||||
return mapLand.getBiome(posX, biomeY << 2, posZ).biome;
|
return mapLand.getBiome(posX, biomeY << 2, posZ).biome;
|
||||||
} else {
|
} else {
|
||||||
return d < -0.21875
|
return d < -0.21875
|
||||||
? (generateEndVoids ? mapVoid : mapLand).getBiome(posX, biomeY << 2, posZ).biome
|
? mapVoid.getBiome(posX, biomeY << 2, posZ).biome
|
||||||
: this.barrens;
|
: generateEndVoids ? this.barrens : mapVoid.getBiome(posX, biomeY << 2, posZ).biome;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
pos.setLocation(biomeX, biomeZ);
|
pos.setLocation(biomeX, biomeZ);
|
||||||
|
@ -362,7 +362,7 @@ public class BCLibEndBiomeSource extends BCLBiomeSource {
|
||||||
} else {
|
} else {
|
||||||
return dist <= farEndBiomes
|
return dist <= farEndBiomes
|
||||||
? barrens
|
? barrens
|
||||||
: (generateEndVoids ? mapVoid : mapLand).getBiome(posX, biomeY << 2, posZ).biome;
|
: mapVoid.getBiome(posX, biomeY << 2, posZ).biome;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -283,7 +283,7 @@ public class BiomeAPI {
|
||||||
* @return {@link BCLBiome}
|
* @return {@link BCLBiome}
|
||||||
*/
|
*/
|
||||||
public static BCLBiome registerEndVoidBiome(BCLBiome biome) {
|
public static BCLBiome registerEndVoidBiome(BCLBiome biome) {
|
||||||
registerBiome(biome, BiomeType.END_VOID);
|
registerBiome(biome, BiomeType.BCL_END_VOID);
|
||||||
|
|
||||||
float weight = biome.getGenChance();
|
float weight = biome.getGenChance();
|
||||||
ResourceKey<Biome> key = getBiomeKey(biome.getBiome());
|
ResourceKey<Biome> key = getBiomeKey(biome.getBiome());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue