mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-11-01 01:42:18 +00:00
Fix FireBlast ignoring config values (#1005)
## Fixes * Fixes FireBlast not using it's FlameParticleRadius and SmokeParticleRadius config values.
This commit is contained in:
parent
c05deb2f15
commit
77a461260d
|
@ -52,6 +52,8 @@ public class FireBlast extends FireAbility {
|
|||
private double fireTicks;
|
||||
@Attribute(Attribute.KNOCKBACK)
|
||||
private double knockback;
|
||||
private double flameRadius;
|
||||
private double smokeRadius;
|
||||
private Random random;
|
||||
private Location location;
|
||||
private Location origin;
|
||||
|
@ -113,13 +115,15 @@ public class FireBlast extends FireAbility {
|
|||
this.collisionRadius = getConfig().getDouble("Abilities.Fire.FireBlast.CollisionRadius");
|
||||
this.fireTicks = getConfig().getDouble("Abilities.Fire.FireBlast.FireTicks");
|
||||
this.knockback = getConfig().getDouble("Abilities.Fire.FireBlast.Knockback");
|
||||
this.flameRadius = getConfig().getDouble("Abilities.Fire.FireBlast.FlameParticleRadius");
|
||||
this.smokeRadius = getConfig().getDouble("Abilities.Fire.FireBlast.SmokeParticleRadius");
|
||||
this.random = new Random();
|
||||
}
|
||||
|
||||
private void advanceLocation() {
|
||||
if (this.showParticles) {
|
||||
ParticleEffect.FLAME.display(this.location, 6, 0.275, 0.275, 0.275, 0);
|
||||
ParticleEffect.SMOKE_NORMAL.display(this.location, 3, 0.3, 0.3, 0.3, 0);
|
||||
ParticleEffect.FLAME.display(this.location, 6, this.flameRadius, this.flameRadius, this.flameRadius, 0);
|
||||
ParticleEffect.SMOKE_NORMAL.display(this.location, 3, this.smokeRadius, this.smokeRadius, this.smokeRadius, 0);
|
||||
}
|
||||
if (GeneralMethods.checkDiagonalWall(this.location, this.direction)) {
|
||||
this.remove();
|
||||
|
|
Loading…
Reference in a new issue