fix: fuck Forge

This commit is contained in:
Skye 2023-06-06 13:44:26 +09:00
parent 4bc14d3b3f
commit 56467cd945
Signed by: me
GPG key ID: 0104BC05F41B77B8

View file

@ -74,7 +74,9 @@ impl Handshake {
Ok(())
}
fn normalized_address(&self) -> String {
if let Some(fml2_stripped) = self.server_address.strip_suffix("\0FML2\0") {
if let Some(fml3_stripped) = self.server_address.strip_suffix("\0FML3\0") {
fml3_stripped.to_lowercase()
} else if let Some(fml2_stripped) = self.server_address.strip_suffix("\0FML2\0") {
fml2_stripped.to_lowercase()
} else if let Some(fml_stripped) = self.server_address.strip_suffix("\0FML\0") {
fml_stripped.to_lowercase()