Skip to content

Commit

Permalink
SPIGOT-7857: Fix spurious internal NBT tag when deserializing BlockSt…
Browse files Browse the repository at this point in the history
…ateMeta
  • Loading branch information
md-5 committed Aug 6, 2024
1 parent 759061b commit 8f26c30
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,10 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
} else {
material = Material.AIR;
}
blockEntityTag = getBlockState(material, internalTag);
internalTag = null;
if (internalTag != null) {
blockEntityTag = getBlockState(material, internalTag);
internalTag = null;
}
}

@Override
Expand Down

0 comments on commit 8f26c30

Please sign in to comment.