minior position/rotation improvements

This commit is contained in:
Snowiiii committed 2024-08-09 14:29:51 +02:00
1 parent e96f072951
commit 770d73f080
11 files changed
+80 -50

No files matched your search

+1 -1
View File
@@ -16,4 +16,4 @@ pub enum ClickEvent {
ChangePage(i32),
/// Copies the given text to system clipboard
CopyToClipboard(String),
}
}
+1 -1
View File
@@ -33,4 +33,4 @@ pub enum NamedColor {
LightPurple,
Yellow,
White,
}
}
+4 -4
View File
@@ -6,8 +6,8 @@ use fastnbt::SerOpts;
use hover::HoverEvent;
use serde::{Deserialize, Serialize};
pub mod color;
pub mod click;
pub mod color;
pub mod hover;
#[derive(Clone, Default, Debug, Serialize, Deserialize)]
@@ -163,9 +163,9 @@ impl TextComponent {
click_event: &self.click_event,
hover_event: &self.hover_event,
};
// dbg!(&serde_json::to_string(&astruct));
let nbt = fastnbt::to_bytes_with_opts(&astruct, SerOpts::network_nbt()).unwrap();
nbt
// dbg!(&serde_json::to_string(&astruct));
fastnbt::to_bytes_with_opts(&astruct, SerOpts::network_nbt()).unwrap()
}
}