minior position/rotation improvements
This commit is contained in:
1 parent
e96f072951
commit
770d73f080
11 files changed
+80
-50
No files matched your search
@@ -16,4 +16,4 @@ pub enum ClickEvent {
|
||||
ChangePage(i32),
|
||||
/// Copies the given text to system clipboard
|
||||
CopyToClipboard(String),
|
||||
}
|
||||
}
|
||||
@@ -33,4 +33,4 @@ pub enum NamedColor {
|
||||
LightPurple,
|
||||
Yellow,
|
||||
White,
|
||||
}
|
||||
}
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user