Use super:: relative instead of crate::protocol absolute import paths
This commit is contained in:
parent
ef334643cc
commit
367c3e5e09
|
@ -4,7 +4,7 @@ use std::io;
|
||||||
use byteorder::WriteBytesExt;
|
use byteorder::WriteBytesExt;
|
||||||
use log::debug;
|
use log::debug;
|
||||||
|
|
||||||
use crate::protocol::{Serializable, Error, LenPrefixed, VarInt};
|
use super::{Serializable, Error, LenPrefixed, VarInt};
|
||||||
|
|
||||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||||
pub enum Phase {
|
pub enum Phase {
|
||||||
|
@ -147,7 +147,7 @@ impl Serializable for FmlHs {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
3 => {
|
3 => {
|
||||||
let protocol_version = unsafe { crate::protocol::CURRENT_PROTOCOL_VERSION };
|
let protocol_version = unsafe { super::CURRENT_PROTOCOL_VERSION };
|
||||||
|
|
||||||
if protocol_version >= 47 {
|
if protocol_version >= 47 {
|
||||||
Ok(FmlHs::RegistryData {
|
Ok(FmlHs::RegistryData {
|
||||||
|
|
|
@ -2484,7 +2484,7 @@ impl Serializable for Recipe {
|
||||||
let a = String::read_from(buf)?;
|
let a = String::read_from(buf)?;
|
||||||
let b = 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
|
// 1.14+ swaps recipe identifier and type, and adds namespace to type
|
||||||
if protocol_version >= 477 {
|
if protocol_version >= 477 {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
use crate::protocol::*;
|
use super::*;
|
||||||
|
|
||||||
mod v1_14_1;
|
mod v1_14_1;
|
||||||
mod v1_14;
|
mod v1_14;
|
||||||
|
|
Loading…
Reference in New Issue