From e77a28c258512abfa4c0eb196e97462bec76eadc Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sat, 23 May 2020 18:44:39 +1200 Subject: [PATCH] Rename packet listener for custom payload --- .../disguise/utilities/packets/PacketsManager.java | 2 +- ...elRegister.java => PacketListenerClientCustomPayload.java} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/{PacketListenerChannelRegister.java => PacketListenerClientCustomPayload.java} (95%) 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 eaad5df5..e7e852d2 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/packets/PacketsManager.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/packets/PacketsManager.java @@ -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(); diff --git a/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerChannelRegister.java b/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerClientCustomPayload.java similarity index 95% rename from src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerChannelRegister.java rename to src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerClientCustomPayload.java index 1bdb5ac7..6017e5d4 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerChannelRegister.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerClientCustomPayload.java @@ -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); }