mirror of
https://github.com/darksaid98/nightcore-spigot.git
synced 2026-12-02 22:17:42 +00:00
v2.7.6.1
- Fixed compatibility for MC <= 1.21.4
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user