Merge pull request #238 into pull request #230

This commit is contained in:
joodicator 2021-12-16 19:36:41 +01:00
commit 1ae9a2b48a
2 changed files with 5 additions and 1 deletions

View File

@ -23,6 +23,9 @@ matrix:
- python: 3.8
env: TOX_ENV=verify-manifest
before_install:
- python -m pip install --upgrade virtualenv
install:
- pip install tox
- pip install python-coveralls

View File

@ -34,7 +34,8 @@ class PlayerPositionAndLookPacket(Packet, BitFieldEnum):
{'pitch': Float},
{'flags': Byte},
{'teleport_id': VarInt} if context.protocol_later_eq(107) else {},
{'dismount_vehicle':Boolean} if context.protocol_later_eq(755) else {},
{'dismount_vehicle': Boolean}
if context.protocol_later_eq(755) else {},
])
# Access the 'x', 'y', 'z' fields as a Vector tuple.