Fix setBiome with invalid biome

This commit is contained in:
Jesse Boyd 2018-07-27 13:26:32 +10:00
parent f5f13ddbe3
commit 4d08c1229b
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
1 changed files with 3 additions and 1 deletions

View File

@ -84,7 +84,9 @@ public class FaweLocalBlockQueue extends LocalBlockQueue {
lastBiome = biome;
this.biome = Biomes.findBiomeByName(biomes, biome, reg);
}
return IMP.setBiome(x, z, this.biome);
if (this.biome != null)
return IMP.setBiome(x, z, this.biome);
return false;
}
@Override