test
This commit is contained in:
parent
992879034e
commit
c26b73c9a9
@ -108,7 +108,9 @@ func (p *PacketAdminServerWelcome) Read(b []byte) {
|
|||||||
bs := make([]byte, 13)
|
bs := make([]byte, 13)
|
||||||
_, _ = r.Read(bs)
|
_, _ = r.Read(bs)
|
||||||
p.MapSeed = binary.LittleEndian.Uint32(bs[0:])
|
p.MapSeed = binary.LittleEndian.Uint32(bs[0:])
|
||||||
p.MapLandscape = uint8(bs[4:5])
|
r.Discard(4)
|
||||||
|
c, _ = r.ReadByte()
|
||||||
|
p.MapLandscape = uint8(c)
|
||||||
p.MapStartDate = binary.LittleEndian.Uint32(bs[5:])
|
p.MapStartDate = binary.LittleEndian.Uint32(bs[5:])
|
||||||
p.MapX = binary.LittleEndian.Uint16(bs[9:])
|
p.MapX = binary.LittleEndian.Uint16(bs[9:])
|
||||||
p.MapY = binary.LittleEndian.Uint16(bs[11:])
|
p.MapY = binary.LittleEndian.Uint16(bs[11:])
|
||||||
|
Loading…
Reference in New Issue
Block a user