diff --git a/CHANGELOG.md b/CHANGELOG.md index f7d6321c4..49641103e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -93,6 +93,7 @@ * Fixed #2260 * Fixed #2263 * Fixed #2269 +* Fixed #2266 ## Release Candidate 15 (01 Aug 2020) 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 15d6db5b6..c61c67a5f 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 @@ -116,6 +116,9 @@ class ExplosiveTool extends SimpleSlimefunItem implements NotPla else if (MaterialCollections.getAllUnbreakableBlocks().contains(b.getType())) { return false; } + else if (!b.getWorld().getWorldBorder().isInside(b.getLocation())) { + return false; + } else { return SlimefunPlugin.getProtectionManager().hasPermission(p, b.getLocation(), ProtectableAction.BREAK_BLOCK); }