World: Add GZip compression

This commit is contained in:
Snowiiii committed 2024-08-16 11:10:16 +02:00
1 parent 94a7a60423
commit 231bdb5614
8 files changed
+90 -64

No files matched your search

+2 -2
View File
@@ -100,13 +100,13 @@ impl TextComponent {
pub fn encode(&self) -> Vec<u8> {
// TODO: Somehow fix this ugly mess
#[derive(serde::Serialize, Debug)]
#[derive(serde::Serialize)]
#[serde(rename_all = "camelCase")]
struct TempStruct<'a> {
#[serde(flatten)]
text: &'a TextContent,
#[serde(flatten)]
pub style: &'a Style,
style: &'a Style,
}
let astruct = TempStruct {
text: &self.content,