Skip to content

Commit

Permalink
some
Browse files Browse the repository at this point in the history
  • Loading branch information
0123456789-jpg committed Mar 24, 2024
1 parent b3bd8d5 commit b6fbc71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/core/advancement/src/edcode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ where
// TODO: `RawText` doesn't implement edcode.
// TODO: Encode `title` and `description`.
self.icon.encode(&mut buf)?;
// Encode `frame`.
self.frame.encode(&mut buf)?;
let mut i = 0_i32;
if self.background.is_some() {
i |= 1;
Expand Down
5 changes: 5 additions & 0 deletions crates/core/advancement/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,13 @@ where
/// Describes how an advancement will be announced in the chat.
/// # MCJE Reference
/// `net.minecraft.advancement.AdvancementFrame` in yarn.
#[cfg_attr(
feature = "edcode",
derive(::rimecraft_edcode::Encode, ::rimecraft_edcode::Decode)
)]
#[derive(Debug, Clone)]
#[non_exhaustive]
#[repr(u8)]
pub enum Frame {
/// Regular task.
Task = 0,
Expand Down

0 comments on commit b6fbc71

Please sign in to comment.