Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Commit

Permalink
make use of the intergration manager
Browse files Browse the repository at this point in the history
  • Loading branch information
J3fftw1 committed Sep 4, 2023
1 parent 6d70544 commit e032437
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private void breakBlocks(BlockBreakEvent e, Player p, ItemStack item, Block b, L
if (!blockExplodeEvent.isCancelled()) {
for (Block block : blockExplodeEvent.blockList()) {
if (canBreak(p, block)) {
if (CustomBlock.byAlreadyPlaced(block) != null) {
if (Slimefun.getIntegrations().isCustomBlock(block)) {
drops.addAll(CustomBlock.byAlreadyPlaced(block).getLoot());
CustomBlock.remove(block.getLocation());
}
Expand All @@ -95,7 +95,7 @@ private void breakBlocks(BlockBreakEvent e, Player p, ItemStack item, Block b, L
} else {
for (Block block : blocks) {
if (canBreak(p, block)) {
if (CustomBlock.byAlreadyPlaced(block) != null) {
if (Slimefun.getIntegrations().isCustomBlock(block)) {
drops.addAll(CustomBlock.byAlreadyPlaced(block).getLoot());
CustomBlock.remove(block.getLocation());
}
Expand Down

0 comments on commit e032437

Please sign in to comment.