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;
}
public int getBarHealth() {
public int getHealth() {
return bossHealth;
}
public void setBarHealth(int bossHealth) {
public void setHealth(int bossHealth) {
this.bossHealth = bossHealth;
if (dragon != null) {
dragon.setHealth(bossHealth);
@ -44,7 +44,7 @@ public class BossBar {
}
}
public void spawn() {
public void display() {
if (dragon != null) {
dragon.destroy();
}

View File

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