Skip to content

Commit ad623ad

Browse files
committed
Use isFinished
Signed-off-by: BT (calcastor/mame) <[email protected]>
1 parent 20c13d9 commit ad623ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/tc/oc/pgm/flag/state/Respawning.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected Duration getDuration() {
5656
public void enterState() {
5757
super.enterState();
5858

59-
if (Duration.ZERO.equals(respawnTime) || this.flag.getMatch().getPhase() == MatchPhase.FINISHED)
59+
if (Duration.ZERO.equals(respawnTime) || this.flag.getMatch().isFinished())
6060
return;
6161

6262
// Respawn is delayed
@@ -90,7 +90,7 @@ protected void respawn(Component message) {
9090

9191
@Override
9292
protected boolean canSeeParticles(Player player) {
93-
return this.flag.getMatch().getPhase() != MatchPhase.FINISHED;
93+
return !this.flag.getMatch().isFinished();
9494
}
9595

9696
@Override

0 commit comments

Comments
 (0)