This commit is contained in:
parent
df04ab8727
commit
c49a82b9c1
1 changed files with 2 additions and 4 deletions
|
@ -92,9 +92,7 @@ public enum BOPShoreLayer implements ICastleTransformer
|
||||||
if (BiomeUtil.hasMetadata(biome))
|
if (BiomeUtil.hasMetadata(biome))
|
||||||
{
|
{
|
||||||
BiomeMetadata meta = BiomeUtil.getMetadata(biome);
|
BiomeMetadata meta = BiomeUtil.getMetadata(biome);
|
||||||
|
return getBiomeIdIfPresent(meta.getBeachBiome(), biomeId);
|
||||||
if (meta.getBeachBiome() == null) return biomeId;
|
|
||||||
else return BiomeUtil.getBiomeId(meta.getBeachBiome());
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -122,7 +120,7 @@ public enum BOPShoreLayer implements ICastleTransformer
|
||||||
|
|
||||||
private static int getBiomeIdIfPresent(RegistryKey<Biome> biome, int fallbackId)
|
private static int getBiomeIdIfPresent(RegistryKey<Biome> biome, int fallbackId)
|
||||||
{
|
{
|
||||||
return BiomeUtil.exists(biome) ? BiomeUtil.getBiomeId(biome) : fallbackId;
|
return biome != null && BiomeUtil.exists(biome) ? BiomeUtil.getBiomeId(biome) : fallbackId;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isJungleCompatible(int biomeId)
|
private static boolean isJungleCompatible(int biomeId)
|
||||||
|
|
Loading…
Reference in a new issue