Skip to content

Commit

Permalink
⚰️ Remove redundant copying of Tool data component
Browse files Browse the repository at this point in the history
  • Loading branch information
skerit committed Jul 2, 2024
1 parent 01c2108 commit 233a6a1
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,6 @@ public ItemStack getClientItem(ItemStack input, @Nullable ServerPlayerEntity pla
output.set(DataComponentTypes.ITEM_NAME, input.getItem().getName(input));
}

if (input.contains(DataComponentTypes.TOOL)) {
output.set(DataComponentTypes.TOOL, input.get(DataComponentTypes.TOOL));
}

return output;
}

Expand Down

0 comments on commit 233a6a1

Please sign in to comment.