diff --git a/aiocraft/client.py b/aiocraft/client.py index 4408d16..6033843 100644 --- a/aiocraft/client.py +++ b/aiocraft/client.py @@ -71,6 +71,7 @@ class MinecraftClient: return self.dispatcher.connected async def write(self, packet:Packet, wait:bool=False): + # TODO get rid of this, too many ways to do one thing... await self.dispatcher.write(packet, wait) async def authenticate(self): diff --git a/aiocraft/mc/definitions.py b/aiocraft/mc/definitions.py index a453e9b..c7e087b 100644 --- a/aiocraft/mc/definitions.py +++ b/aiocraft/mc/definitions.py @@ -97,6 +97,9 @@ class BlockPos: and (self.y - other.y) < threshold \ and (self.z - other.z) < threshold + def clone(self) -> 'BlockPos': + return BlockPos(self.x, self.y, self.z) + def __repr__(self) -> str: return f"{self.__class__.__name__}(x={self.x},y={self.y},z={self.z})"