This commit is contained in:
shoopea 2020-06-15 10:45:56 +02:00
parent 456c479a41
commit 87dcc6472d

View File

@ -117,7 +117,7 @@ func (p *PacketAdminServerWelcome) Read(b []byte) {
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.Discard(3)
c, _ = r.ReadByte()
@ -138,7 +138,7 @@ func handlePacket(p Packet, b []byte) {
switch p.PType {
case AdminPacketServerProtocol:
logInfoDebug("AdminPacketServerProtocol Raw : %v", b)
sp := AdminPacketServerProtocol{
sp := PacketAdminServerProtocol{
Packet: p,
}
sp.Read(b)