test
This commit is contained in:
parent
456c479a41
commit
87dcc6472d
@ -117,7 +117,7 @@ func (p *PacketAdminServerWelcome) Read(b []byte) {
|
|||||||
p.MapY = binary.LittleEndian.Uint16(bs[11:])
|
p.MapY = binary.LittleEndian.Uint16(bs[11:])
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *AdminPacketServerProtocol) Read(b []byte) {
|
func (p *PacketAdminServerProtocol) Read(b []byte) {
|
||||||
r := bufio.NewReader(bytes.NewReader(b))
|
r := bufio.NewReader(bytes.NewReader(b))
|
||||||
r.Discard(3)
|
r.Discard(3)
|
||||||
c, _ = r.ReadByte()
|
c, _ = r.ReadByte()
|
||||||
@ -138,7 +138,7 @@ func handlePacket(p Packet, b []byte) {
|
|||||||
switch p.PType {
|
switch p.PType {
|
||||||
case AdminPacketServerProtocol:
|
case AdminPacketServerProtocol:
|
||||||
logInfoDebug("AdminPacketServerProtocol Raw : %v", b)
|
logInfoDebug("AdminPacketServerProtocol Raw : %v", b)
|
||||||
sp := AdminPacketServerProtocol{
|
sp := PacketAdminServerProtocol{
|
||||||
Packet: p,
|
Packet: p,
|
||||||
}
|
}
|
||||||
sp.Read(b)
|
sp.Read(b)
|
||||||
|
Loading…
Reference in New Issue
Block a user