Receive Respawn World Information

This commit is contained in:
2022-04-16 12:50:50 +08:00
parent f4bb734c1c
commit 607df98c3d
2 changed files with 11 additions and 0 deletions

View File

@ -111,3 +111,13 @@ func (p *Player) handleLoginPacket(packet pk.Packet) error {
}
return nil
}
func (p *Player) handleRespawnPacket(packet pk.Packet) error {
err := packet.Scan(
pk.NBT(&p.WorldInfo.Dimension),
(*pk.Identifier)(&p.WorldName),
)
if err != nil {
return Error{err}
}
return nil
}