Skip to content

Commit daa446f

Browse files
committed
Only show tablist stats when the player is on a team
Signed-off-by: Ashcon Partovi <ashcon@partovi.net>
1 parent 5d48972 commit daa446f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/java/tc/oc/pgm/tablist/MatchFooterTabEntry.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ public BaseComponent getContent(TabView view) {
5454

5555
MatchPlayer viewer = match.getPlayer(view.getViewer());
5656

57-
if (viewer.getSettings().getValue(SettingKey.STATS).equals(SettingValue.STATS_ON)) {
57+
if (viewer.getCompetitor() != null
58+
&& viewer.getSettings().getValue(SettingKey.STATS).equals(SettingValue.STATS_ON)) {
5859
content.extra(match.getModule(StatsMatchModule.class).getBasicStatsMessage(viewer.getId()));
5960
content.extra("\n");
6061
}

0 commit comments

Comments
 (0)