mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-17 14:03:55 +00:00
Added particle and sound effects to the single super pickaxe.
This commit is contained in:
@ -37,7 +37,8 @@ public class SinglePickaxe implements BlockTool {
|
||||
LocalPlayer player, LocalSession session, WorldVector clicked) {
|
||||
LocalWorld world = clicked.getWorld();
|
||||
|
||||
if (world.getBlockType(clicked) == BlockID.BEDROCK
|
||||
final int blockType = world.getBlockType(clicked);
|
||||
if (blockType == BlockID.BEDROCK
|
||||
&& !player.canDestroyBedrock()) {
|
||||
return true;
|
||||
}
|
||||
@ -48,6 +49,8 @@ public class SinglePickaxe implements BlockTool {
|
||||
|
||||
world.setBlockType(clicked, BlockID.AIR);
|
||||
|
||||
world.playEffect(clicked, 2001, blockType);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user