Skip to content

Commit

Permalink
Update a few comments...
Browse files Browse the repository at this point in the history
  • Loading branch information
rbluer committed Dec 6, 2023
1 parent 522bec6 commit 8251833
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions prison-spigot/src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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_
Expand Down

0 comments on commit 8251833

Please sign in to comment.