Implement FacePlayerPacket
Called when using the teleport chat command and you specify a facing parameter. `/teleport [<targets>] <x> <y> <z> facing`
This commit is contained in:
1 parent
7b1567c352
commit
d7b560a9f4
3 files changed
+73
-1
No files matched your search
@@ -15,6 +15,7 @@ from .spawn_object_packet import SpawnObjectPacket
|
||||
from .block_change_packet import BlockChangePacket, MultiBlockChangePacket
|
||||
from .explosion_packet import ExplosionPacket
|
||||
from .sound_effect_packet import SoundEffectPacket
|
||||
from . face_player_packet import FacePlayerPacket
|
||||
|
||||
|
||||
# Formerly known as state_playing_clientbound.
|
||||
@@ -48,6 +49,10 @@ def get_packets(context):
|
||||
packets |= {
|
||||
SoundEffectPacket,
|
||||
}
|
||||
if context.protocol_version >= 352:
|
||||
packets |= {
|
||||
FacePlayerPacket
|
||||
}
|
||||
return packets
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user