From 3df2410254ed9d3598b4e2d8e76a57cb89bb5791 Mon Sep 17 00:00:00 2001 From: wizjany Date: Sun, 2 Jun 2019 21:50:41 -0400 Subject: [PATCH] Change chunk loading method. Behavior of loadChunk changed a lot for the worse in CB 1.14. --- .../src/main/java/com/sk89q/worldedit/bukkit/BukkitWorld.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitWorld.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitWorld.java index 0eb37223e..67d643f89 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitWorld.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitWorld.java @@ -305,9 +305,7 @@ public class BukkitWorld extends AbstractWorld { public void checkLoadedChunk(BlockVector3 pt) { World world = getWorld(); - if (!world.isChunkLoaded(pt.getBlockX() >> 4, pt.getBlockZ() >> 4)) { - world.loadChunk(pt.getBlockX() >> 4, pt.getBlockZ() >> 4); - } + world.getChunkAt(pt.getBlockX() >> 4, pt.getBlockZ() >> 4); } @Override