diff --git a/aiocraft/mc/proto/play/clientbound/packet_multi_block_change.py b/aiocraft/mc/proto/play/clientbound/packet_multi_block_change.py index 033a6df..c0ef264 100644 --- a/aiocraft/mc/proto/play/clientbound/packet_multi_block_change.py +++ b/aiocraft/mc/proto/play/clientbound/packet_multi_block_change.py @@ -8,7 +8,7 @@ from ....types import * class PacketMultiBlockChange(Packet): __slots__ = ( 'id', 'chunkCoordinates', 'chunkX', 'chunkZ', 'notTrustEdges', 'records', 'suppressLightUpdates' ) - chunkCoordinates : bytes + chunkCoordinates : int chunkX : int chunkZ : int notTrustEdges : bool @@ -16,7 +16,7 @@ class PacketMultiBlockChange(Packet): suppressLightUpdates : bool def __init__(self, proto:int, - chunkCoordinates:bytes=None, + chunkCoordinates:int=None, chunkX:int=None, chunkZ:int=None, notTrustEdges:bool=None, diff --git a/compiler/proto.py b/compiler/proto.py index 104a048..4d0b37e 100644 --- a/compiler/proto.py +++ b/compiler/proto.py @@ -197,6 +197,8 @@ def mchint(slot_type:Any) -> Ref: else: possibilities.add(Ref('None')) return Ref(f'Union[{", ".join(str(s) for s in sorted(possibilities))}]') + elif t == "bitfield": + return Ref('int') # elif t == "mapper": # ???? # return TrailingData logging.error("Unknown type %s, using 'bytes' as hint", str(slot_type))