Skip to content

Commit 47a5252

Browse files
committed
perf(ping): remove "data:image/png;base64," because it's not necessary
1 parent c5106f2 commit 47a5252

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/minecraft/ping.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ fn parse_response(buf: Vec<u8>, latency: f32) -> Result<Ping, String> {
112112
description_legacy: Some(legacy),
113113
description_plain: Some(plain),
114114

115-
favicon: v.get("favicon").and_then(|f| f.as_str()).map(|s| s.to_string()),
115+
favicon: v.get("favicon").and_then(|f| f.as_str()).map(|s| s.to_string().replace("data:image/png;base64,", "")),
116116
enforces_secure_chat: v.get("enforcesSecureChat").and_then(|s| s.as_bool()),
117117

118118
is_modded: v.get("modinfo").is_some() || v.get("forgeData").is_some(),

0 commit comments

Comments
 (0)