mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-09-11 01:38:07 +02:00
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(tabListListener);
|
||||
ProtocolLibrary.getProtocolManager().addPacketListener(new PacketListenerChannelRegister());
|
||||
ProtocolLibrary.getProtocolManager().addPacketListener(new PacketListenerClientCustomPayload());
|
||||
|
||||
// Now I call this and the main listener is registered!
|
||||
setupMainPacketsListener();
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user