Fix NPE when //genbiome expression was false.

Fixes WORLDEDIT-3467.
This commit is contained in:
wizjany
2016-07-06 11:14:11 -04:00
parent e1bb00e665
commit c957ffb95a
3 changed files with 4 additions and 4 deletions

View File

@@ -136,7 +136,7 @@ public abstract class ArbitraryBiomeShape {
if (!hollow) {
final BaseBiome material = getBiome(x, z, baseBiome);
if (material != OUTSIDE) {
if (material != null && material != OUTSIDE) {
editSession.getWorld().setBiome(position, material);
++affected;
}