1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00
This commit is contained in:
Jeffrey 2023-08-14 13:00:38 +02:00
parent 0137abadf1
commit fb9e8c55e8
No known key found for this signature in database
GPG Key ID: 90F6887F79A113A3

View File

@ -138,7 +138,7 @@ public class ExplosiveTool extends SimpleSlimefunItem<ToolUseHandler> 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<ToolUseHandler> implements
b.setType(Material.AIR);
BlockStorage.clearBlockInfo(b);
}
// Fixes #3836
} else if (CustomBlock.byAlreadyPlaced(b) != null) {
return;
} else {
b.breakNaturally(item);
}