Skip to content

Commit

Permalink
shifting flags
Browse files Browse the repository at this point in the history
  • Loading branch information
JieningYu committed Aug 25, 2024
1 parent 433be96 commit 8c62764
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/core/block-entity/src/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ bitflags! {
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct Flags: u8 {
/// Serializes the registration identifier.
const ID = 0b00000001;
const ID = 1u8 << 0;
/// Serializes the position.
const POS = 0b00000010;
const POS = 1u8 << 1;
/// Serializes the component map.
const COMPONENTS = 0b00000100;
const COMPONENTS = 1u8 << 2;
}
}

Expand Down

0 comments on commit 8c62764

Please sign in to comment.