Skip to content

Commit 10f30bd

Browse files
committed
Handle ModList packet from server
1 parent 5d85b11 commit 10f30bd

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/server/plugin_messages.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,16 @@ impl<'a> FmlHs<'a> {
7171
fml_protocol_version,
7272
override_dimension,
7373
}
74-
75-
// TODO: send reply
74+
},
75+
1 => panic!("Received unexpected FML|HS ClientHello from server"),
76+
2 => {
77+
//TODO let number_of_mods = VarInt::read_from(&mut data[1..].to_vec());
78+
let mods: HashMap<&'a str, &'a str> = HashMap::new();
79+
// TODO: read mods
80+
81+
FmlHs::ModList {
82+
mods,
83+
}
7684
},
7785
_ => {
7886
panic!("Unhandled FML|HS packet: discriminator={}", discriminator);

0 commit comments

Comments
 (0)