mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-02-05 02:41:24 +01:00
Fixed dynamite particles
This commit is contained in:
parent
ad7c42da78
commit
ce0345c3ae
@ -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));
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user