- Fixed compatibility for MC <= 1.21.4
This commit is contained in:
nulli0n committed 2025-06-04 15:08:39 +05:00
1 parent 12a85ce198
commit 753ca2dfc4
4 files changed
+16 -5

No files matched your search

@@ -318,7 +318,12 @@ public class PaperBridge implements Software {
}
public static void hidePaperComponents(@NotNull ItemStack itemStack, @NotNull Set<DataComponentType> componentTypes) {
TooltipDisplay tooltipDisplay = TooltipDisplay.tooltipDisplay().hiddenComponents(componentTypes).build();
itemStack.setData(DataComponentTypes.TOOLTIP_DISPLAY, tooltipDisplay);
try {
TooltipDisplay tooltipDisplay = TooltipDisplay.tooltipDisplay().hiddenComponents(componentTypes).build();
itemStack.setData(DataComponentTypes.TOOLTIP_DISPLAY, tooltipDisplay);
}
catch (NoSuchElementException exception) {
exception.printStackTrace();
}
}
}