Skip to content

Commit

Permalink
Fix combustion charging particles
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimordialMoros committed Apr 20, 2021
1 parent 798f8f1 commit 1ff6d7c
Showing 1 changed file with 16 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,24 +129,26 @@ public void progress() {
remove();
return;
}
if (!charged) {
if (System.currentTimeMillis() > getStartTime() + chargeTime) {
charged = true;
}
} else {
if (player.getHealth() + 0.5 < initialHealth) {
createExplosion(player.getEyeLocation(), power + misfireModifier, damage + misfireModifier);
return;
}
if (player.isSneaking() && chargeTime != 0) {
playParticleRing();
location = player.getEyeLocation();
if (chargeTime != 0) {
playParticleRing();
if (charged) {
CoreMethods.playFocusParticles(player);
} else {
bPlayer.addCooldown(this);
location = player.getEyeLocation();
launched = true;
if (System.currentTimeMillis() > getStartTime() + chargeTime) {
charged = true;
}
}
}
if (player.getHealth() + 0.5 < initialHealth) {
createExplosion(player.getEyeLocation(), power + misfireModifier, damage + misfireModifier);
return;
}

if (charged && (!player.isSneaking() || chargeTime <= 0)) {
bPlayer.addCooldown(this);
launched = true;
}
}
}

Expand Down

0 comments on commit 1ff6d7c

Please sign in to comment.