From 77a461260d17b0755d9a33665cc5d40e19519607 Mon Sep 17 00:00:00 2001 From: Numin Date: Sat, 17 Aug 2019 16:39:04 -0500 Subject: [PATCH] Fix FireBlast ignoring config values (#1005) ## Fixes * Fixes FireBlast not using it's FlameParticleRadius and SmokeParticleRadius config values. --- .../projectkorra/projectkorra/firebending/FireBlast.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/com/projectkorra/projectkorra/firebending/FireBlast.java b/src/com/projectkorra/projectkorra/firebending/FireBlast.java index 74a27d72..60cf74d6 100644 --- a/src/com/projectkorra/projectkorra/firebending/FireBlast.java +++ b/src/com/projectkorra/projectkorra/firebending/FireBlast.java @@ -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();