mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
clean up
This commit is contained in:
parent
0137abadf1
commit
fb9e8c55e8
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user