Skip to content

Commit

Permalink
Remove unneeded broken check from modifier util
Browse files Browse the repository at this point in the history
Hopefully this does not break anything, it should fix a bunch of things
  • Loading branch information
KnightMiner committed Apr 27, 2023
1 parent 738bd33 commit c00f398
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public static void dropItem(Entity target, ItemStack stack) {
* @return Modifier level, or 0 if not present or the stack is not modifiable
*/
public static int getModifierLevel(ItemStack stack, ModifierId modifier) {
if (!stack.isEmpty() && stack.is(TinkerTags.Items.MODIFIABLE) && !ToolDamageUtil.isBroken(stack)) {
if (!stack.isEmpty() && stack.is(TinkerTags.Items.MODIFIABLE)) {
CompoundTag nbt = stack.getTag();
if (nbt != null && nbt.contains(ToolStack.TAG_MODIFIERS, Tag.TAG_LIST)) {
ListTag list = nbt.getList(ToolStack.TAG_MODIFIERS, Tag.TAG_COMPOUND);
Expand Down

0 comments on commit c00f398

Please sign in to comment.