···357357 info!(
358358 "Performing server handshake check with client {} at message version {}.{}",
359359 msg.client_name(),
360360- msg.api_version_major(),
361361- msg.api_version_minor()
360360+ msg.protocol_version_major(),
361361+ msg.protocol_version_minor()
362362 );
363363364364- if BUTTPLUG_CURRENT_API_MAJOR_VERSION < msg.api_version_major() {
364364+ if BUTTPLUG_CURRENT_API_MAJOR_VERSION < msg.protocol_version_major() {
365365 return ButtplugHandshakeError::MessageSpecVersionMismatch(
366366 BUTTPLUG_CURRENT_API_MAJOR_VERSION,
367367- msg.api_version_major(),
367367+ msg.protocol_version_major(),
368368 )
369369 .into();
370370 }
···374374375375 // Due to programming/spec errors in prior versions of the protocol, anything before v4 expected
376376 // that it would be back a matching api version of the server. The correct response is to send back whatever the
377377- let output_version = if (msg.api_version_major() as u32) < 4 {
378378- msg.api_version_major()
377377+ let output_version = if (msg.protocol_version_major() as u32) < 4 {
378378+ msg.protocol_version_major()
379379 } else {
380380 BUTTPLUG_CURRENT_API_MAJOR_VERSION
381381 };