show playerposlook coords in console

This commit is contained in:
əlemi 2021-12-04 05:21:15 +01:00
parent b836c31658
commit 9413ac4a85

View file

@ -170,8 +170,11 @@ class Treepuncher(MinecraftClient):
@self.on_packet(PacketPosition)
async def player_rubberband_cb(packet:PacketPosition):
self._logger.info("Position synchronized")
self.position = BlockPos(packet.x, packet.y, packet.z)
self._logger.info(
"Position synchronized : (x:{%.0f},y:{%.0f},z:{%.0f})",
self.position.x, self.position.y, self.position.z
)
await self.dispatcher.write(
PacketTeleportConfirm(
self.dispatcher.proto,