Skip to content

Commit

Permalink
remove getting and setting the id
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreArcil committed Nov 5, 2023
1 parent e8cdcd4 commit cce154c
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,8 @@ public static void fixEnchantmentData(final ItemType itemType, final CompoundTag
for (int i = 0; i < nbttaglist.size(); ++i)
{
final CompoundTag nbttagcompound = nbttaglist.getCompound(i);
final String id = nbttagcompound.getString(Constants.Item.ITEM_ENCHANTMENT_ID);
final short lvl = nbttagcompound.getShort(Constants.Item.ITEM_ENCHANTMENT_LEVEL);

nbttagcompound.putString(Constants.Item.ITEM_ENCHANTMENT_ID, id);
nbttagcompound.putShort(Constants.Item.ITEM_ENCHANTMENT_LEVEL, lvl);
}
}
Expand Down

0 comments on commit cce154c

Please sign in to comment.