mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2024-11-11 01:17:16 +00:00
Don't register team listener if using armorstands
This commit is contained in:
parent
e22ba6565f
commit
3591c3bcf8
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue