Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
FPlayer: add checking team null
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFaser committed Aug 28, 2023
1 parent b454006 commit b8bb95a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/net/flectone/misc/entity/FPlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ public void setTeamColor(@NotNull String teamColor) {
}

public void removeTeam() {
if (team == null) return;
this.team.unregister();
}

Expand Down

0 comments on commit b8bb95a

Please sign in to comment.