From 0137abadf10feeebd80f4db3c3c62b4859c47446 Mon Sep 17 00:00:00 2001 From: Jeffrey Date: Tue, 8 Aug 2023 17:27:30 +0200 Subject: [PATCH] fix #3836 --- .../slimefun4/implementation/items/tools/ExplosiveTool.java | 4 ++++ 1 file changed, 4 insertions(+) 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 db990c64c..52c6e44f3 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 @@ -6,6 +6,7 @@ import java.util.List; import javax.annotation.Nonnull; import javax.annotation.ParametersAreNonnullByDefault; +import dev.lone.itemsadder.api.CustomBlock; import org.bukkit.Bukkit; import org.bukkit.Effect; import org.bukkit.Material; @@ -172,6 +173,9 @@ 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); }