Fixed dynamite particles

This commit is contained in:
Auxilor 2020-11-07 20:04:34 +00:00
parent ad7c42da78
commit ce0345c3ae
2 changed files with 1 additions and 6 deletions

View File

@ -47,11 +47,7 @@ public class Dynamite extends Spell {
for(int y = -size; y <= size; y++) {
for (int z = -size; z <= size; z++) {
if(x == 0 && y == 0 && z == 0) {
if(this.getConfig().getBool(EcoEnchants.CONFIG_LOCATION + "enable-sound")) {
block.getWorld().createExplosion(block.getLocation().clone().add(0.5, 0.5, 0.5), 0, false);
} else {
block.getWorld().spawnParticle(Particle.EXPLOSION_HUGE, block.getLocation().clone().add(0.5, 0.5, 0.5), 1);
}
block.getWorld().spawnParticle(Particle.EXPLOSION_HUGE, block.getLocation().clone().add(0.5, 0.5, 0.5), 1);
}
Block block1 = block.getWorld().getBlockAt(block.getLocation().clone().add(x, y, z));

View File

@ -22,7 +22,6 @@ general-config:
config:
activation-sound: ENTITY_DRAGON_FIREBALL_EXPLODE
cooldown: 30 # In seconds
enable-sound: true # Play explosion sound
hardness-check: true # Only break blocks with hardness less than or equal to first block
blacklisted-blocks:
- bedrock