1.20.4 update

This commit is contained in:
SushiLeader
2024-04-27 17:15:48 +08:00
parent 479eddc639
commit eca78280cc
11 changed files with 592 additions and 179 deletions

View File

@ -43,7 +43,7 @@ func (c *Client) joinConfiguration(conn *net.Conn) error {
}
switch packetid.ClientboundPacketID(p.ID) {
case packetid.ClientboundConfigCustomPayload:
case packetid.ClientboundCustomPayload:
var channel pk.Identifier
var data pk.PluginMessageData
err := p.Scan(&channel, &data)
@ -52,7 +52,7 @@ func (c *Client) joinConfiguration(conn *net.Conn) error {
}
// TODO: Provide configuration custom data handling interface
case packetid.ClientboundConfigDisconnect:
case packetid.ClientboundDisconnect:
var reason chat.Message
err := p.Scan(&reason)
if err != nil {

View File

@ -19,7 +19,7 @@ import (
// ProtocolVersion is the protocol version number of minecraft net protocol
const (
ProtocolVersion = 764
ProtocolVersion = 765
DefaultPort = mcnet.DefaultPort
)