From 82518336a401978891137e31ab8114ef70c87590 Mon Sep 17 00:00:00 2001 From: rbluer <665978+rbluer@users.noreply.github.com> Date: Wed, 6 Dec 2023 02:40:02 -0500 Subject: [PATCH] Update a few comments... --- .../prison/spigot/block/OnBlockBreakEventCore.java | 7 +++++++ prison-spigot/src/main/resources/config.yml | 1 + 2 files changed, 8 insertions(+) diff --git a/prison-spigot/src/main/java/tech/mcprison/prison/spigot/block/OnBlockBreakEventCore.java b/prison-spigot/src/main/java/tech/mcprison/prison/spigot/block/OnBlockBreakEventCore.java index 3017e4ec4..18409fcf7 100644 --- a/prison-spigot/src/main/java/tech/mcprison/prison/spigot/block/OnBlockBreakEventCore.java +++ b/prison-spigot/src/main/java/tech/mcprison/prison/spigot/block/OnBlockBreakEventCore.java @@ -420,6 +420,13 @@ protected boolean validateEvent( PrisonMinesBlockBreakEvent pmEvent ) pmEvent.setTargetBlock( targetBlock ); // NOTE: I have no idea why 25 blocks and less should be bypassed for validation: + // Perhaps its because small mines, with 25 or less blocks, just need to be + // processed as quickly as possible? Which could allow breakage even if it + // does not match? + // Later on, bypassMatchedBlocks is used for monitor events when the + // target block is AIR which may mean the block was already removed, so + // ignore the block in the event, and just process it if it was not + // already mined? boolean bypassMatchedBlocks = pmEvent.getMine().getBounds().getTotalBlockCount() <= 25; if ( bypassMatchedBlocks ) { pmEvent.setDebugColorCodeWarning(); diff --git a/prison-spigot/src/main/resources/config.yml b/prison-spigot/src/main/resources/config.yml index 4730ba395..1e253a222 100644 --- a/prison-spigot/src/main/resources/config.yml +++ b/prison-spigot/src/main/resources/config.yml @@ -328,6 +328,7 @@ prison-mines: - GoldMine - SampleMineName world-guard: + WARNING: WorldGuard support is not yet available. Coming soon. region-mine: enable: true name-prefix: prison_mine_