From 5746285881497382e4c5401aa19ec504d077c85f Mon Sep 17 00:00:00 2001 From: HSGamer Date: Sun, 4 Aug 2019 08:38:58 +0700 Subject: [PATCH] EXPLOSIVE_PICKAXE: ignore liquid block --- src/me/mrCookieSlime/Slimefun/Setup/SlimefunSetup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/me/mrCookieSlime/Slimefun/Setup/SlimefunSetup.java b/src/me/mrCookieSlime/Slimefun/Setup/SlimefunSetup.java index fe603439c..63009f506 100644 --- a/src/me/mrCookieSlime/Slimefun/Setup/SlimefunSetup.java +++ b/src/me/mrCookieSlime/Slimefun/Setup/SlimefunSetup.java @@ -2180,7 +2180,7 @@ public class SlimefunSetup { for (int y = -1; y <= 1; y++) { for (int z = -1; z <= 1; z++) { Block b = e.getBlock().getRelative(x, y, z); - if (b.getType() != Material.AIR && !StringUtils.equals(b.getType().toString(), explosiveblacklist)) { + if (b.getType() != Material.AIR && !b.isLiquid() && !StringUtils.equals(b.getType().toString(), explosiveblacklist)) { if (CSCoreLib.getLib().getProtectionManager().canBuild(e.getPlayer().getUniqueId(), b)) { if (SlimefunStartup.instance.isCoreProtectInstalled()) SlimefunStartup.instance.getCoreProtectAPI().logRemoval(e.getPlayer().getName(), b.getLocation(), b.getType(), b.getBlockData()); b.getWorld().playEffect(b.getLocation(), Effect.STEP_SOUND, b.getType());