Skip to content

Commit

Permalink
Revert unnecessary AdvancedEnchantments event ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
Archy-X committed May 30, 2024
1 parent 4ad48db commit 1aff91f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ public void onBreak(BlockBreakEvent event) {

Block block = event.getBlock();

// AdvancedEnchantments compatibility fix
if (block.hasMetadata("blockbreakevent-ignore")) {
return;
}

var originalSource = getSource(block);

if (originalSource == null) return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,6 @@ public void onBreak(BlockBreakEvent event) {
return;
}

// AdvancedEnchantments compatibility fix
if (block.hasMetadata("blockbreakevent-ignore")) {
return;
}

BlockXpSource source = getSource(block);
if (isTrunk(source) || block.getType().toString().contains("STRIPPED")) {
Player player = event.getPlayer();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ public void clearSourceCache() {
public void onBreak(BlockBreakEvent event) {
if (disabled()) return;

Block block = event.getBlock();
// AdvancedEnchantments compatibility fix
if (block.hasMetadata("blockbreakevent-ignore")) {
return;
}

Player player = event.getPlayer();
User user = plugin.getUser(player);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ public void onBlockBreak(BlockBreakEvent event) {
Player player = event.getPlayer();
Block block = event.getBlock();

// AdvancedEnchantments compatibility fix
if (block.hasMetadata("blockbreakevent-ignore")) {
return;
}

//Checks if in blocked or disabled world
if (plugin.getWorldManager().isInBlockedWorld(block.getLocation())) {
return;
Expand Down

0 comments on commit 1aff91f

Please sign in to comment.