mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2024-12-23 09:08:36 +01:00
612fa8e324
This commit introduces two backward-incompatible changes which may break existing code: (1) `networking.packets.clientbound.play.SpawnObjectPacket.EntityType' is no longer accessible as an attribute of the the `SpawnObjectPacket' class: the values now depend on a `ConnectionContext`, and must be accessed through an instance, or using `SpawnObjectPacket.field_enum'. See the text of the `AttributeError` raised from the descriptor for `SpawnObjectPacket.EntityType` for the full details. (2) For some subclasses of `networking.types.Type', it is necessary to call the methods `read_with_context' and `send_with_context' instead of `read' and `send', supplying a `ConnectionContext' for those data types - currently only `Position` - whose layout depends on it. |
||
---|---|---|
.. | ||
encryption | ||
__init__.py | ||
compat.py | ||
fake_server.py | ||
test_authentication.py | ||
test_backward_compatible.py | ||
test_connection.py | ||
test_encryption.py | ||
test_exceptions.py | ||
test_packets_with_logic.py | ||
test_packets.py | ||
test_reactors.py | ||
test_serialization.py | ||
test_utility_types.py | ||
test_version.py |