Rename packet listener for custom payload
This commit is contained in:
parent
08bee8afd8
commit
e77a28c258
@ -37,7 +37,7 @@ public class PacketsManager {
|
|||||||
|
|
||||||
ProtocolLibrary.getProtocolManager().addPacketListener(clientInteractEntityListener);
|
ProtocolLibrary.getProtocolManager().addPacketListener(clientInteractEntityListener);
|
||||||
ProtocolLibrary.getProtocolManager().addPacketListener(tabListListener);
|
ProtocolLibrary.getProtocolManager().addPacketListener(tabListListener);
|
||||||
ProtocolLibrary.getProtocolManager().addPacketListener(new PacketListenerChannelRegister());
|
ProtocolLibrary.getProtocolManager().addPacketListener(new PacketListenerClientCustomPayload());
|
||||||
|
|
||||||
// Now I call this and the main listener is registered!
|
// Now I call this and the main listener is registered!
|
||||||
setupMainPacketsListener();
|
setupMainPacketsListener();
|
||||||
|
@ -17,8 +17,8 @@ import java.util.ArrayList;
|
|||||||
/**
|
/**
|
||||||
* Created by libraryaddict on 21/05/2020.
|
* Created by libraryaddict on 21/05/2020.
|
||||||
*/
|
*/
|
||||||
public class PacketListenerChannelRegister extends PacketAdapter {
|
public class PacketListenerClientCustomPayload extends PacketAdapter {
|
||||||
public PacketListenerChannelRegister() {
|
public PacketListenerClientCustomPayload() {
|
||||||
super(LibsDisguises.getInstance(), PacketType.Play.Client.CUSTOM_PAYLOAD);
|
super(LibsDisguises.getInstance(), PacketType.Play.Client.CUSTOM_PAYLOAD);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user