From dfb0c5671b277f1e0437e4e62b5055b6aa02f5b6 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sun, 14 Oct 2018 03:42:23 +1100 Subject: [PATCH] Fixes boy0001/FastAsyncWorldedit#1116 --- .../java/com/boydti/fawe/bukkit/v0/BukkitChunk_All.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); + } } } }