Skip to content

Commit

Permalink
Panic when BlockFacing::from_id is called with invalid id
Browse files Browse the repository at this point in the history
  • Loading branch information
StackDoubleFlow committed Dec 18, 2023
1 parent aba9745 commit eb89334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/blocks/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ impl BlockFacing {
3 => BlockFacing::West,
4 => BlockFacing::Up,
5 => BlockFacing::Down,
_ => BlockFacing::West,
_ => panic!("invalid BlockFacing with id {}", id),
}
}

Expand Down

0 comments on commit eb89334

Please sign in to comment.