From 13cfd638d66cfaa050b713eb3c025c09ada19276 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Tue, 29 Sep 2020 10:11:29 +0100 Subject: [PATCH] Fix incorrtect field references --- .../fawe/bukkit/adapter/mc1_15_2/BukkitAdapter_1_15_2.java | 2 +- .../fawe/bukkit/adapter/mc1_16_1/BukkitAdapter_1_16_1.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_15_2/BukkitAdapter_1_15_2.java b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_15_2/BukkitAdapter_1_15_2.java index d7544aa80..f81bfdd9e 100644 --- a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_15_2/BukkitAdapter_1_15_2.java +++ b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_15_2/BukkitAdapter_1_15_2.java @@ -95,7 +95,7 @@ public final class BukkitAdapter_1_15_2 extends NMSAdapter { fieldDirtyBits = PlayerChunk.class.getDeclaredField("r"); fieldDirtyBits.setAccessible(true); - fieldBiomeArray = BiomeStorage.class.getDeclaredField("h"); + fieldBiomeArray = BiomeStorage.class.getDeclaredField("g"); fieldBiomeArray.setAccessible(true); Method declaredGetVisibleChunk = PlayerChunkMap.class.getDeclaredMethod("getVisibleChunk", long.class); diff --git a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_16_1/BukkitAdapter_1_16_1.java b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_16_1/BukkitAdapter_1_16_1.java index eb22f5743..37e6eb9af 100644 --- a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_16_1/BukkitAdapter_1_16_1.java +++ b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_16_1/BukkitAdapter_1_16_1.java @@ -80,7 +80,7 @@ public final class BukkitAdapter_1_16_1 extends NMSAdapter { fieldDirtyBits = PlayerChunk.class.getDeclaredField("r"); fieldDirtyBits.setAccessible(true); - fieldBiomeArray = BiomeStorage.class.getDeclaredField("h"); + fieldBiomeArray = BiomeStorage.class.getDeclaredField("g"); fieldBiomeArray.setAccessible(true); Method declaredGetVisibleChunk = PlayerChunkMap.class.getDeclaredMethod("getVisibleChunk", long.class);