Fix tests, changes pk.NBT api

This commit is contained in:
Tnze
2021-02-28 15:14:52 +08:00
parent b8a3f1a094
commit 951bedbb13
5 changed files with 76 additions and 40 deletions

View File

@ -47,8 +47,8 @@ func (p *Player) handleJoinGamePacket(packet pk.Packet) error {
(*pk.Byte)(&p.PrevGamemode),
&WorldCount,
pk.Ary{Len: &WorldCount, Ary: &WorldNames},
&pk.NBT{V: new(interface{})},
&pk.NBT{V: new(interface{})},
pk.NBT(new(interface{})),
pk.NBT(new(interface{})),
(*pk.Identifier)(&p.WorldName),
(*pk.Long)(&p.HashedSeed),
(*pk.VarInt)(&p.MaxPlayers),