Ignore null team

This commit is contained in:
libraryaddict 2021-01-19 13:33:53 +13:00
parent 4f2d54b844
commit 72180cc15a

View File

@ -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;
}