Skip to content

Commit

Permalink
Fix the BlockBreakEvent being ignored on first call (Fixes #36)
Browse files Browse the repository at this point in the history
  • Loading branch information
2008Choco committed Feb 19, 2020
1 parent 188bf0b commit 23b83e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private void onBlockBreak(BlockBreakEvent event) {
}

Material currentType = block.getType();
if (ReflectionUtil.breakBlock(player, block)) {
if (block == origin || ReflectionUtil.breakBlock(player, block)) {
this.statTracker.accumulateVeinMinedMaterial(currentType);
}
}
Expand Down

0 comments on commit 23b83e6

Please sign in to comment.