diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/tools/ExplosiveTool.java b/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/tools/ExplosiveTool.java index 9f71e881d9..6fe1174e4f 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/tools/ExplosiveTool.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/tools/ExplosiveTool.java @@ -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()); } @@ -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()); }