mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-12 12:00:59 +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(mainListener);
|
||||||
ProtocolLibrary.getProtocolManager().addPacketListener(destroyListener);
|
ProtocolLibrary.getProtocolManager().addPacketListener(destroyListener);
|
||||||
|
|
||||||
if (NmsVersion.v1_13.isSupported()) {
|
if (NmsVersion.v1_13.isSupported() &&
|
||||||
|
DisguiseConfig.getPlayerNameType() != DisguiseConfig.PlayerNameType.ARMORSTANDS) {
|
||||||
scoreboardTeamListener = new PacketListenerScoreboardTeam();
|
scoreboardTeamListener = new PacketListenerScoreboardTeam();
|
||||||
ProtocolLibrary.getProtocolManager().addPacketListener(scoreboardTeamListener);
|
ProtocolLibrary.getProtocolManager().addPacketListener(scoreboardTeamListener);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue