Skip to content

Commit

Permalink
Remove Flags key from the NBT before dumping it as well
Browse files Browse the repository at this point in the history
  • Loading branch information
EverNife committed Oct 1, 2024
1 parent 6f68a45 commit 73bfb8f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public List<String> read(ItemStack i, List<String> output) {
compound.removeKey("display");//Remove LORE and DisplayName
if (MCVersion.isHigherEquals(MCVersion.v1_13)){
compound.removeKey("Damage");//Remove Damage key
compound.removeKey("HideFlags");//Remove Flags key
}
if (!FCNBTUtil.isEmpty(compound)){
output.add("nbt: " + compound.toString());
Expand Down

0 comments on commit 73bfb8f

Please sign in to comment.