Skip to content

Commit

Permalink
Fix: Make macro accept list of compound
Browse files Browse the repository at this point in the history
  • Loading branch information
Rheydskey committed Jul 14, 2024
1 parent 20b9394 commit 1009466
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ macro_rules! nbt_inner {
$crate::NbtTag::List(::std::vec![$($lit.into()),*])
};
([$($t:tt),* $(,)?]) => {
$crate::NbtTag::List(::std::vec![$($t.into()),*])
}
$crate::NbtTag::List(::std::vec![$(nbt_inner!($t).into()),*])
};

}

0 comments on commit 1009466

Please sign in to comment.