Fixed caves crash with non-be biome source (issue #148)
This commit is contained in:
parent
16b02e15bf
commit
9999abf945
3 changed files with 21 additions and 7 deletions
|
@ -117,7 +117,8 @@ public abstract class EndCaveFeature extends DefaultFeature {
|
|||
private void setBiome(WorldGenLevel world, BlockPos pos, EndCaveBiome biome) {
|
||||
IBiomeArray array = (IBiomeArray) world.getChunk(pos).getBiomes();
|
||||
if (array != null) {
|
||||
array.be_setBiome(biome.getActualBiome(), pos);
|
||||
Biome bio = EndBiomes.getActualBiome(biome);
|
||||
array.be_setBiome(bio, pos);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue