File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -693,7 +693,7 @@ impl Server {
693693
694694 self . write_plugin_message ( "REGISTER" , "FML|HS\0 FML\0 FML|MP\0 FML\0 FORGE" . 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 _ => ( ) ,
Original file line number Diff line number Diff line change @@ -8,14 +8,14 @@ use crate::protocol::packet::play::serverbound::PluginMessageServerbound_i16;
88use 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,
You can’t perform that action at this time.
0 commit comments