From 51670733262407ef964debde6fb84502fdefe700 Mon Sep 17 00:00:00 2001 From: Paul Date: Mon, 17 Jul 2023 21:47:47 +0100 Subject: [PATCH] fix: regions not trimming Y correctly when restricted (#2363) --- .../java/com/fastasyncworldedit/core/queue/IBatchProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/IBatchProcessor.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/IBatchProcessor.java index 807a90fb4..5eeafe28e 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/IBatchProcessor.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/IBatchProcessor.java @@ -85,7 +85,7 @@ public interface IBatchProcessor { } for (int layer = maxLayer; layer < set.getMaxSectionPosition(); layer++) { if (set.hasSection(layer)) { - if (layer == minLayer) { + if (layer == maxLayer) { char[] arr = set.loadIfPresent(layer); if (arr != null) { int index = ((maxY + 1) & 15) << 8;