diff --git a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/v0/BukkitChunk_All.java b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/v0/BukkitChunk_All.java index ffba5fc6c..79a039f96 100644 --- a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/v0/BukkitChunk_All.java +++ b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/v0/BukkitChunk_All.java @@ -178,9 +178,11 @@ public class BukkitChunk_All extends IntFaweChunk { int xx = bx + x; int biome = biomes[index] & 0xFF; if (biome == 0) continue; - if (biome == -1) biome = 0; + if (biome == 255) biome = 0; Biome bukkitBiome = adapter.getBiome(biome); - world.setBiome(xx, zz, bukkitBiome); + if (bukkitBiome != null) { + world.setBiome(xx, zz, bukkitBiome); + } } } }