From 86539c1758037d9d979da51173e1a4e9a7d51634 Mon Sep 17 00:00:00 2001 From: MattBDev <4009945+MattBDev@users.noreply.github.com> Date: Thu, 13 Feb 2020 18:32:26 -0500 Subject: [PATCH] Fixed infinite loop causing massive CPU usage --- .../src/main/java/com/boydti/fawe/beta/IBatchProcessor.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/worldedit-core/src/main/java/com/boydti/fawe/beta/IBatchProcessor.java b/worldedit-core/src/main/java/com/boydti/fawe/beta/IBatchProcessor.java index 25d478f43..fb7117e6b 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/beta/IBatchProcessor.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/beta/IBatchProcessor.java @@ -70,14 +70,12 @@ public interface IBatchProcessor { } try { int layer = (minY - 15) >> 4; - Fawe.imp().debug("layer: " + layer + " < " +((maxY + 15) >> 4)); while (layer < (maxY + 15) >> 4) { - if (layer > -1) { + if (layer >= -1) { if (set.hasSection(layer)) { return true; } layer++; - Fawe.imp().debug("layer++ : " + layer); } } } catch (ArrayIndexOutOfBoundsException exception) {