summaryrefslogtreecommitdiff
path: root/classic/packets.go
diff options
context:
space:
mode:
Diffstat (limited to 'classic/packets.go')
-rw-r--r--classic/packets.go16
1 files changed, 14 insertions, 2 deletions
diff --git a/classic/packets.go b/classic/packets.go
index 48ea80d..e361399 100644
--- a/classic/packets.go
+++ b/classic/packets.go
@@ -179,8 +179,18 @@ func createPacketType(packetId byte, client bool, ext map[string]bool) Packet {
case 0x04: return &LevelFinalize {}
case 0x05: return &ClientSetBlock {}
case 0x06: return &SetBlock {}
- case 0x07: return &SpawnPlayer {}
- case 0x08: return &SetPosFacing {}
+ case 0x07:
+ if !ext["ExtEntityPositions"] {
+ return &SpawnPlayer {}
+ } else {
+ return &SpawnPlayerExt {}
+ }
+ case 0x08:
+ if !ext["ExtEntityPositions"] {
+ return &SetPosFacing {}
+ } else {
+ return &SetPosFacingExt {}
+ }
case 0x09: return &UpdatePosFacing {}
case 0x0a: return &UpdatePos {}
case 0x0b: return &UpdateFacing {}
@@ -188,6 +198,8 @@ func createPacketType(packetId byte, client bool, ext map[string]bool) Packet {
case 0x0d: return &Message {}
case 0x0e: return &DisconnectPlayer {}
case 0x0f: return &UpdateUserType {}
+ case 0x10: return &ExtInfo {}
+ case 0x11: return &ExtEntry {}
default: return nil
}
}