From de4cb586eb6813cf97cc7da908604d1c5c136f08 Mon Sep 17 00:00:00 2001 From: IronApollo Date: Wed, 26 Feb 2020 09:35:41 -0500 Subject: [PATCH] Fix PlotSquared hook --- .../src/main/java/com/boydti/fawe/beta/IBatchProcessor.java | 4 ++-- .../src/main/java/com/boydti/fawe/config/Settings.java | 2 +- 2 files changed, 3 insertions(+), 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 fb7117e6b..face13146 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 @@ -71,12 +71,12 @@ public interface IBatchProcessor { try { int layer = (minY - 15) >> 4; while (layer < (maxY + 15) >> 4) { - if (layer >= -1) { + if (layer > -1) { if (set.hasSection(layer)) { return true; } - layer++; } + layer++; } } catch (ArrayIndexOutOfBoundsException exception) { Fawe.imp().debug("minY = " + minY); diff --git a/worldedit-core/src/main/java/com/boydti/fawe/config/Settings.java b/worldedit-core/src/main/java/com/boydti/fawe/config/Settings.java index 382d01e08..a02b6a7e9 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/config/Settings.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/config/Settings.java @@ -15,7 +15,7 @@ public class Settings extends Config { @Ignore public boolean PROTOCOL_SUPPORT_FIX = false; @Ignore - public boolean PLOTSQUARED_HOOK = false; + public boolean PLOTSQUARED_HOOK = true; @Comment("These first 6 aren't configurable") // This is a comment @Final // Indicates that this value isn't configurable