Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.

Commit

Permalink
Remove unnecessary arguments from pack constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnaude committed Oct 30, 2014
1 parent 229b16e commit 28f8871
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/cnaude/purpleirc/Utilities/NetPackets.java
Expand Up @@ -65,7 +65,7 @@ public void addToTabList(String name, PurpleBot ircBot, Channel channel) {
return;
}
}
playerListConstructor = protocolManager.createPacketConstructor(PacketType.Play.Server.PLAYER_INFO, "", false, (int) 0);
playerListConstructor = protocolManager.createPacketConstructor(PacketType.Play.Server.PLAYER_INFO);
try {

PacketContainer packet = playerListConstructor.createPacket(
Expand All @@ -88,7 +88,7 @@ public void remFromTabList(String name) {
if (! plugin.customTabList) {
return;
}
playerListConstructor = protocolManager.createPacketConstructor(PacketType.Play.Server.PLAYER_INFO, "", false, (int) 0);
playerListConstructor = protocolManager.createPacketConstructor(PacketType.Play.Server.PLAYER_INFO);
try {
PacketContainer packet = playerListConstructor.createPacket(
truncateName(plugin.customTabPrefix + name), false, 0);
Expand Down

0 comments on commit 28f8871

Please sign in to comment.