Ensure the beach biome id is actually -1 when the biome is null

This commit is contained in:
Adubbz 2019-05-24 14:27:46 +10:00
parent 5bffc07653
commit c739135516

View file

@ -38,12 +38,15 @@ public class BiomeBOP extends Biome
if (biome.isPresent())
this.beachBiomeId = IRegistry.BIOME.getId(biome.get());
else
this.beachBiomeId = IRegistry.BIOME.getId(Biomes.BEACH);
this.beachBiomeId = -1;
}
public void setBeachBiome(Biome biome)
{
this.beachBiomeId = IRegistry.BIOME.getId(biome);
if (biome != null)
this.beachBiomeId = IRegistry.BIOME.getId(biome);
else
this.beachBiomeId = -1;
}
public Map<BOPClimates, Integer> getWeightMap()