Update readme, cleanup, format

This commit is contained in:
ice_iix 2021-01-23 13:22:22 -08:00
parent ceefeb2e11
commit db69e84dd7
3 changed files with 10 additions and 8 deletions

View File

@ -55,7 +55,7 @@ development is not in lock-step with the server version. The level of
support varies, but the goal is to support major versions from 1.7.10
up to the current latest major version. Occasionally, snapshots are also supported.
Forge servers are currently supported on 1.7.10 - 1.12.2.
Forge servers are supported on 1.7.10 - 1.12.2 (FML) and 1.13.2 - 1.16.5 (FML2).
Support for older protocols will _not_ be dropped as newer protocols are added.

View File

@ -1132,20 +1132,23 @@ impl Conn {
self.write_plugin_message("FML|HS", &buf)
}
pub fn write_login_plugin_response(&mut self, message_id: VarInt, successful: bool, data: &[u8]) -> Result<(), Error> {
pub fn write_login_plugin_response(
&mut self,
message_id: VarInt,
successful: bool,
data: &[u8],
) -> Result<(), Error> {
if is_network_debug() {
debug!(
"Sending login plugin message: message_id={:?}, successful={:?}, data={:?}",
message_id,
successful,
data,
message_id, successful, data,
);
}
debug_assert!(self.state == State::Login);
self.write_packet(packet::login::serverbound::LoginPluginResponse {
message_id,
successful,
data: data.to_vec()
data: data.to_vec(),
})
}
@ -1254,7 +1257,6 @@ impl Conn {
}
pub fn set_compresssion(&mut self, threshold: i32) {
println!("set_compression {:?}", threshold);
self.compression_threshold = threshold;
}

View File

@ -3138,7 +3138,7 @@ pub enum CommandProperty {
ForgeModId,
ForgeEnum {
cls: String,
}
},
}
impl Serializable for CommandNode {