From 72180cc15ab3ce5c9efd64510cbce9cf831ec600 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Tue, 19 Jan 2021 13:33:53 +1300 Subject: [PATCH] Ignore null team --- .../packets/packetlisteners/PacketListenerScoreboardTeam.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 96ba272f..77bf3c96 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 @@ -29,7 +29,7 @@ public class PacketListenerScoreboardTeam extends PacketAdapter { PacketContainer packet = event.getPacket(); String name = packet.getStrings().read(0); - if (!name.startsWith("LD_") || name.equals("LD_NoName") || name.equals("LD_Pushing")) { + if (name == null || !name.startsWith("LD_") || name.equals("LD_NoName") || name.equals("LD_Pushing")) { return; }