compiled latest comrecmit

This commit is contained in:
Fangoboyo 2022-06-25 19:28:05 -07:00
parent 72898022a0
commit 940d02ed7f
2 changed files with 5 additions and 5 deletions

View File

@ -22,11 +22,11 @@ public class BossBar {
return dragonLocation; return dragonLocation;
} }
public int getBarHealth() { public int getHealth() {
return bossHealth; return bossHealth;
} }
public void setBarHealth(int bossHealth) { public void setHealth(int bossHealth) {
this.bossHealth = bossHealth; this.bossHealth = bossHealth;
if (dragon != null) { if (dragon != null) {
dragon.setHealth(bossHealth); dragon.setHealth(bossHealth);
@ -44,7 +44,7 @@ public class BossBar {
} }
} }
public void spawn() { public void display() {
if (dragon != null) { if (dragon != null) {
dragon.destroy(); dragon.destroy();
} }

View File

@ -28,9 +28,9 @@ public class FakeWitherCommand implements CommandExecutor {
@Override @Override
public void run() { public void run() {
// Count down // Count down
bar.setBarHealth(bar.getBarHealth() - 1); bar.setHealth(bar.getHealth() - 1);
if (bar.getBarHealth() <= 0) { if (bar.getHealth() <= 0) {
bar.delete(); bar.delete();
task.cancel(); task.cancel();
} }