Skip to content

Commit c82167f

Browse files
committed
Merge branch 'spectator-fix'
2 parents 4d484a2 + 08cc95c commit c82167f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/org/mctourney/autoreferee/AutoRefMatch.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,10 @@ public MatchStatus getCurrentState()
349349
* @param status new match status
350350
*/
351351
public void setCurrentState(MatchStatus status)
352-
{ this.currentState = status; this.setupSpectators(); }
352+
{
353+
this.currentState = status;
354+
if (!status.isBeforeMatch()) this.setupSpectators();
355+
}
353356

354357
// custom scoreboard
355358
protected final Scoreboard scoreboard;

0 commit comments

Comments
 (0)