From 233a6a1250120db8e1f6cd76f57259db53399c1f Mon Sep 17 00:00:00 2001 From: Jelle De Loecker Date: Tue, 2 Jul 2024 17:49:45 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=B0=EF=B8=8F=20Remove=20redundant=20copyi?= =?UTF-8?q?ng=20of=20Tool=20data=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../polymc/impl/poly/item/CustomModelDataPoly.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/io/github/theepicblock/polymc/impl/poly/item/CustomModelDataPoly.java b/src/main/java/io/github/theepicblock/polymc/impl/poly/item/CustomModelDataPoly.java index d6f8bff3..9c0549ff 100644 --- a/src/main/java/io/github/theepicblock/polymc/impl/poly/item/CustomModelDataPoly.java +++ b/src/main/java/io/github/theepicblock/polymc/impl/poly/item/CustomModelDataPoly.java @@ -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; }