From 3591c3bcf8c0149370754a52cb337788b790fe08 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 23 Aug 2020 13:28:35 +1200 Subject: [PATCH] Don't register team listener if using armorstands --- .../disguise/utilities/packets/PacketsManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/packets/PacketsManager.java b/src/main/java/me/libraryaddict/disguise/utilities/packets/PacketsManager.java index d33d70fb..395b62f6 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/packets/PacketsManager.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/packets/PacketsManager.java @@ -169,7 +169,8 @@ public class PacketsManager { ProtocolLibrary.getProtocolManager().addPacketListener(mainListener); ProtocolLibrary.getProtocolManager().addPacketListener(destroyListener); - if (NmsVersion.v1_13.isSupported()) { + if (NmsVersion.v1_13.isSupported() && + DisguiseConfig.getPlayerNameType() != DisguiseConfig.PlayerNameType.ARMORSTANDS) { scoreboardTeamListener = new PacketListenerScoreboardTeam(); ProtocolLibrary.getProtocolManager().addPacketListener(scoreboardTeamListener); }