From 8d5aec4114af6b465aecd8bf81e4f49140fc2a27 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 14 Jun 2020 23:40:04 +0200 Subject: [PATCH] test --- packet.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packet.go b/packet.go index 658e1d8..db142cb 100644 --- a/packet.go +++ b/packet.go @@ -1,6 +1,7 @@ package main import ( + "bufio" "bytes" "encoding/binary" ) @@ -103,7 +104,7 @@ func (p *PacketAdminServerWelcome) Read(b []byte) { bs := make([]byte, 13) _, _ = r.Read(bs) p.MapSeed = binary.LittleEndian.Uint32(bs[0:]) - p.MapLandscape = uint8(bs[4:1]) + p.MapLandscape = uint8(bs[4:4]) p.MapStartDate = binary.LittleEndian.Uint32(bs[5:]) p.MapX = binary.LittleEndian.Uint16(bs[9:]) p.MapY = binary.LittleEndian.Uint16(bs[11:])