From e20e48f5fb3a1a32efbfd9f062d7b0242ce2a904 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sat, 2 Nov 2019 20:44:49 +0100 Subject: [PATCH] temporary disable plotsquared hook for schems --- .../java/com/boydti/fawe/config/Settings.java | 2 ++ .../plotquared/PlotSquaredFeature.java | 16 +++++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) 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 e8b53b2c5..ed7d4ee11 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 @@ -14,6 +14,8 @@ public class Settings extends Config { @Ignore public boolean PROTOCOL_SUPPORT_FIX = false; + @Ignore + public boolean PLOTSQUARED_HOOK = false; @Comment("These first 6 aren't configurable") // This is a comment @Final // Indicates that this value isn't configurable diff --git a/worldedit-core/src/main/java/com/boydti/fawe/regions/general/integrations/plotquared/PlotSquaredFeature.java b/worldedit-core/src/main/java/com/boydti/fawe/regions/general/integrations/plotquared/PlotSquaredFeature.java index 723cb102b..cf405971a 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/regions/general/integrations/plotquared/PlotSquaredFeature.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/regions/general/integrations/plotquared/PlotSquaredFeature.java @@ -38,14 +38,16 @@ public class PlotSquaredFeature extends FaweMaskManager { public PlotSquaredFeature() { super("PlotSquared"); Fawe.debug("Optimizing PlotSquared"); - setupBlockQueue(); - setupSchematicHandler(); - setupChunkManager(); - if (Settings.PLATFORM.equalsIgnoreCase("bukkit")) { - new FaweTrim(); + if (com.boydti.fawe.config.Settings.IMP.PLOTSQUARED_HOOK) { + setupBlockQueue(); + setupSchematicHandler(); + setupChunkManager(); + if (Settings.PLATFORM.equalsIgnoreCase("bukkit")) { + new FaweTrim(); + } + if (MainCommand.getInstance().getCommand("generatebiome") == null) { + new PlotSetBiome(); } - if (MainCommand.getInstance().getCommand("generatebiome") == null) { - new PlotSetBiome(); } // TODO: revisit this later on /*