Skip to content

Commit

Permalink
Fixed crash on legacy worlds
Browse files Browse the repository at this point in the history
  • Loading branch information
ammoore00 committed Apr 1, 2021
1 parent f643d98 commit 212ecd0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/minecraft/net/minecraft/src/BTABiomeDecorator.java
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,12 @@ public void decorate(World par1World, Random par2Random, int par3, int par4)
else
{
this.currentWorld = par1World;
this.generatorInfo = BTAWorldConfigurationInfo.createInfoFromString(this.currentWorld.provider.generatorOptions);
if (this.currentWorld.provider.generatorOptions.equals("")) {
this.generatorInfo = BTAWorldConfigurationInfo.createDefaultConfigurationLegacy(this.currentWorld.provider.terrainType.isDeco());
}
else {
this.generatorInfo = BTAWorldConfigurationInfo.createInfoFromString(this.currentWorld.provider.generatorOptions);
}
this.randomGenerator = par2Random;
this.chunk_X = par3;
this.chunk_Z = par4;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,12 @@ public void decorate(World par1World, Random par2Random, int par3, int par4)
else
{
this.currentWorld = par1World;
this.generatorInfo = BTAWorldConfigurationInfo.createInfoFromString(this.currentWorld.provider.generatorOptions);
if (this.currentWorld.provider.generatorOptions.equals("")) {
this.generatorInfo = BTAWorldConfigurationInfo.createDefaultConfigurationLegacy(this.currentWorld.provider.terrainType.isDeco());
}
else {
this.generatorInfo = BTAWorldConfigurationInfo.createInfoFromString(this.currentWorld.provider.generatorOptions);
}
this.randomGenerator = par2Random;
this.chunk_X = par3;
this.chunk_Z = par4;
Expand Down

0 comments on commit 212ecd0

Please sign in to comment.