Skip to content

Commit 3f9dc31

Browse files
committed
ForgeMod name -> modid
1 parent f047355 commit 3f9dc31

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/server/plugin_messages.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ use crate::protocol::{Serializable, Error, LenPrefixed, VarInt};
99

1010
#[derive(Debug, Default)]
1111
pub struct ForgeMod {
12-
name: String,
13-
version: String,
12+
pub modid: String,
13+
pub version: String,
1414
}
1515

1616
impl Serializable for ForgeMod {
1717
fn read_from<R: io::Read>(buf: &mut R) -> Result<Self, Error> {
1818
Ok(ForgeMod {
19-
name: Serializable::read_from(buf)?,
19+
modid: Serializable::read_from(buf)?,
2020
version: Serializable::read_from(buf)?,
2121
})
2222
}
2323

2424
fn write_to<W: io::Write>(&self, buf: &mut W) -> Result<(), Error> {
25-
self.name.write_to(buf)?;
25+
self.modid.write_to(buf)?;
2626
self.version.write_to(buf)
2727
}
2828
}

0 commit comments

Comments
 (0)