From 5225099ec0bf1107c50d221a23a7a33c6e64fc32 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Thu, 14 May 2020 16:17:29 +0100 Subject: [PATCH] Fix biome setting in 1.15 --- .../boydti/fawe/bukkit/adapter/mc1_15/BukkitGetBlocks_1_15.java | 2 +- .../fawe/bukkit/adapter/mc1_15_2/BukkitGetBlocks_1_15_2.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_15/BukkitGetBlocks_1_15.java b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_15/BukkitGetBlocks_1_15.java index 68ef24f11..1fb398cb5 100644 --- a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_15/BukkitGetBlocks_1_15.java +++ b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_15/BukkitGetBlocks_1_15.java @@ -328,7 +328,7 @@ public class BukkitGetBlocks_1_15 extends CharGetBlocks { final Biome craftBiome = BukkitAdapter.adapt(biome); BiomeBase nmsBiome = CraftBlock.biomeToBiomeBase(craftBiome); for (int y = 0; y < FaweCache.IMP.WORLD_HEIGHT; y++) { - currentBiomes.setBiome(x, y, z, nmsBiome); + currentBiomes.setBiome(x >> 2, y >> 2, z >> 2, nmsBiome); } } } diff --git a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_15_2/BukkitGetBlocks_1_15_2.java b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_15_2/BukkitGetBlocks_1_15_2.java index 87c3062a9..39b1c36f9 100644 --- a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_15_2/BukkitGetBlocks_1_15_2.java +++ b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_15_2/BukkitGetBlocks_1_15_2.java @@ -340,7 +340,7 @@ public class BukkitGetBlocks_1_15_2 extends CharGetBlocks { final Biome craftBiome = BukkitAdapter.adapt(biome); BiomeBase nmsBiome = CraftBlock.biomeToBiomeBase(craftBiome); for (int y = 0; y < FaweCache.IMP.WORLD_HEIGHT; y++) { - currentBiomes.setBiome(x, y, z, nmsBiome); + currentBiomes.setBiome(x >> 2, y >> 2, z >> 2, nmsBiome); } } }