From 2e0fa300b7465d0112fee7b3ef6251c4bfe91432 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Tue, 22 Jan 2019 21:34:14 +1000 Subject: [PATCH] Actually support disabling chunk loading extent --- .../com/sk89q/worldedit/extent/world/ChunkLoadingExtent.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/world/ChunkLoadingExtent.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/world/ChunkLoadingExtent.java index 006ac9a2c..de5ae4378 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/world/ChunkLoadingExtent.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/world/ChunkLoadingExtent.java @@ -62,7 +62,9 @@ public class ChunkLoadingExtent extends AbstractDelegateExtent { @Override public > boolean setBlock(BlockVector3 location, B block) throws WorldEditException { - world.checkLoadedChunk(location); + if (enabled) { + world.checkLoadedChunk(location); + } return super.setBlock(location, block); } }