From fb9e8c55e842d95906ed59fa628e341f02527a83 Mon Sep 17 00:00:00 2001 From: Jeffrey Date: Mon, 14 Aug 2023 13:00:38 +0200 Subject: [PATCH] clean up --- .../slimefun4/implementation/items/tools/ExplosiveTool.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 52c6e44f3..bd85adc0c 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 @@ -138,7 +138,7 @@ public class ExplosiveTool extends SimpleSlimefunItem implements return false; } else if (!b.getWorld().getWorldBorder().isInside(b.getLocation())) { return false; - } else if (Slimefun.getIntegrations().isCustomBlock(b)) { + } else if (CustomBlock.byAlreadyPlaced(b) != null) { return false; } else { return Slimefun.getProtectionManager().hasPermission(p, b.getLocation(), Interaction.BREAK_BLOCK); @@ -173,9 +173,6 @@ public class ExplosiveTool extends SimpleSlimefunItem implements b.setType(Material.AIR); BlockStorage.clearBlockInfo(b); } - // Fixes #3836 - } else if (CustomBlock.byAlreadyPlaced(b) != null) { - return; } else { b.breakNaturally(item); }