diff --git a/src/protocol/forge.rs b/src/protocol/forge.rs index cdfbd5f..8f8fa58 100644 --- a/src/protocol/forge.rs +++ b/src/protocol/forge.rs @@ -4,7 +4,7 @@ use std::io; use byteorder::WriteBytesExt; use log::debug; -use crate::protocol::{Serializable, Error, LenPrefixed, VarInt}; +use super::{Serializable, Error, LenPrefixed, VarInt}; #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub enum Phase { @@ -147,7 +147,7 @@ impl Serializable for FmlHs { }) }, 3 => { - let protocol_version = unsafe { crate::protocol::CURRENT_PROTOCOL_VERSION }; + let protocol_version = unsafe { super::CURRENT_PROTOCOL_VERSION }; if protocol_version >= 47 { Ok(FmlHs::RegistryData { diff --git a/src/protocol/packet.rs b/src/protocol/packet.rs index 29f666d..9e1734a 100644 --- a/src/protocol/packet.rs +++ b/src/protocol/packet.rs @@ -2484,7 +2484,7 @@ impl Serializable for Recipe { let a = String::read_from(buf)?; let b = String::read_from(buf)?; - let protocol_version = unsafe { crate::protocol::CURRENT_PROTOCOL_VERSION }; + let protocol_version = unsafe { super::CURRENT_PROTOCOL_VERSION }; // 1.14+ swaps recipe identifier and type, and adds namespace to type if protocol_version >= 477 { diff --git a/src/protocol/versions.rs b/src/protocol/versions.rs index 554ce88..e55cd8f 100644 --- a/src/protocol/versions.rs +++ b/src/protocol/versions.rs @@ -1,4 +1,4 @@ -use crate::protocol::*; +use super::*; mod v1_14_1; mod v1_14;