From 39489d00804bb22216122a3dde72cdcef6b1560c Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 10 Jul 2020 08:09:15 +1200 Subject: [PATCH] Check for null on disguise team name --- pom.xml | 2 +- .../packets/packetlisteners/PacketListenerScoreboardTeam.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 8df37b41..0c3a62e0 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ LibsDisguises LibsDisguises - 10.0.15 + 10.0.15-SNAPSHOT exec:java clean install diff --git a/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerScoreboardTeam.java b/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerScoreboardTeam.java index 9b2afb91..d5bf7c9c 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerScoreboardTeam.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerScoreboardTeam.java @@ -45,7 +45,7 @@ public class PacketListenerScoreboardTeam extends PacketAdapter { DisguiseUtilities.DScoreTeam t = ((PlayerDisguise) disguise).getScoreboardName(); - if (!t.getTeamName().equals(name)) { + if (!name.equals(t.getTeamName())) { continue; }