Check for null on disguise team name

This commit is contained in:
libraryaddict 2020-07-10 08:09:15 +12:00
parent 99bbf66921
commit 39489d0080
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
<!-- A good example on why temporary names for project identification shouldn't be used --> <!-- A good example on why temporary names for project identification shouldn't be used -->
<groupId>LibsDisguises</groupId> <groupId>LibsDisguises</groupId>
<artifactId>LibsDisguises</artifactId> <artifactId>LibsDisguises</artifactId>
<version>10.0.15</version> <version>10.0.15-SNAPSHOT</version>
<build> <build>
<defaultGoal>exec:java clean install</defaultGoal> <defaultGoal>exec:java clean install</defaultGoal>

View File

@ -45,7 +45,7 @@ public class PacketListenerScoreboardTeam extends PacketAdapter {
DisguiseUtilities.DScoreTeam t = ((PlayerDisguise) disguise).getScoreboardName(); DisguiseUtilities.DScoreTeam t = ((PlayerDisguise) disguise).getScoreboardName();
if (!t.getTeamName().equals(name)) { if (!name.equals(t.getTeamName())) {
continue; continue;
} }