Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kralverde committed Feb 17, 2025
1 parent 148ac38 commit 2d102b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pumpkin-nbt/src/deserializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ impl<'de, R: Read> de::Deserializer<'de> for &mut Deserializer<R> {
where
V: Visitor<'de>,
{
if let Some(tag_id) = self.tag_to_deserialize_stack.last() {
if *tag_id != COMPOUND_ID {
if let Some(tag_id) = self.tag_to_deserialize_stack.pop() {
if tag_id != COMPOUND_ID {
return Err(Error::SerdeError(
"Trying to deserialize a map without a compound ID".to_string(),
));
Expand Down

0 comments on commit 2d102b5

Please sign in to comment.