change packet id from Byte to VarInt. #59

This commit is contained in:
Tnze
2020-06-02 11:59:06 +08:00
parent d0371163cd
commit 61f1fc31b6
3 changed files with 46 additions and 48 deletions

View File

@ -2,7 +2,7 @@ package data
// Clientbound packet IDs
const (
SpawnObject byte = iota //0x00
SpawnObject int32 = iota //0x00
SpawnExperienceOrb
SpawnGlobalEntity
SpawnMob
@ -104,7 +104,7 @@ const (
// Serverbound packet IDs
const (
TeleportConfirm byte = iota //0x00
TeleportConfirm int32 = iota //0x00
QueryBlockNBT
SetDifficulty
ChatMessageServerbound