Rename packet listener for custom payload

This commit is contained in:
libraryaddict 2020-05-23 18:44:39 +12:00
parent 08bee8afd8
commit e77a28c258
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ public class PacketsManager {
ProtocolLibrary.getProtocolManager().addPacketListener(clientInteractEntityListener);
ProtocolLibrary.getProtocolManager().addPacketListener(tabListListener);
ProtocolLibrary.getProtocolManager().addPacketListener(new PacketListenerChannelRegister());
ProtocolLibrary.getProtocolManager().addPacketListener(new PacketListenerClientCustomPayload());
// Now I call this and the main listener is registered!
setupMainPacketsListener();

View File

@ -17,8 +17,8 @@ import java.util.ArrayList;
/**
* Created by libraryaddict on 21/05/2020.
*/
public class PacketListenerChannelRegister extends PacketAdapter {
public PacketListenerChannelRegister() {
public class PacketListenerClientCustomPayload extends PacketAdapter {
public PacketListenerClientCustomPayload() {
super(LibsDisguises.getInstance(), PacketType.Play.Client.CUSTOM_PAYLOAD);
}