Skip to content

Commit f047355

Browse files
committed
Mod -> ForgeMod
1 parent e577ed4 commit f047355

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/server/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ impl Server {
693693

694694
self.write_plugin_message("REGISTER", "FML|HS\0FML\0FML|MP\0FML\0FORGE".as_bytes());
695695
self.write_fmlhs_plugin_message(&plugin_messages::FmlHs::ClientHello { fml_protocol_version });
696-
let mods: crate::protocol::LenPrefixed<crate::protocol::VarInt, plugin_messages::Mod> = Default::default();
696+
let mods: crate::protocol::LenPrefixed<crate::protocol::VarInt, plugin_messages::ForgeMod> = Default::default();
697697
self.write_fmlhs_plugin_message(&plugin_messages::FmlHs::ModList { mods });
698698
},
699699
_ => (),

src/server/plugin_messages.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ use crate::protocol::packet::play::serverbound::PluginMessageServerbound_i16;
88
use crate::protocol::{Serializable, Error, LenPrefixed, VarInt};
99

1010
#[derive(Debug, Default)]
11-
pub struct Mod {
11+
pub struct ForgeMod {
1212
name: String,
1313
version: String,
1414
}
1515

16-
impl Serializable for Mod {
16+
impl Serializable for ForgeMod {
1717
fn read_from<R: io::Read>(buf: &mut R) -> Result<Self, Error> {
18-
Ok(Mod {
18+
Ok(ForgeMod {
1919
name: Serializable::read_from(buf)?,
2020
version: Serializable::read_from(buf)?,
2121
})
@@ -37,7 +37,7 @@ pub enum FmlHs<'a> {
3737
fml_protocol_version: i8,
3838
},
3939
ModList {
40-
mods: LenPrefixed<VarInt, Mod>,
40+
mods: LenPrefixed<VarInt, ForgeMod>,
4141
},
4242
RegistryData {
4343
has_more: bool,
@@ -77,7 +77,7 @@ impl<'a> Serializable for FmlHs<'a> {
7777
},
7878
1 => panic!("Received unexpected FML|HS ClientHello from server"),
7979
2 => {
80-
let mods: LenPrefixed<VarInt, Mod> = Serializable::read_from(buf)?;
80+
let mods: LenPrefixed<VarInt, ForgeMod> = Serializable::read_from(buf)?;
8181

8282
Ok(FmlHs::ModList {
8383
mods,

0 commit comments

Comments
 (0)