mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-17 10:24:23 +01:00
Fix crash
This commit is contained in:
parent
02e9e80a71
commit
ae86396a86
1 changed files with 3 additions and 1 deletions
|
@ -41,7 +41,9 @@ public class ModifierTooltipRenderer {
|
|||
lines.add(Text.translatable("item.unicopia.friendship_bracelet.glowing").formatted(Formatting.ITALIC, Formatting.GRAY));
|
||||
}
|
||||
|
||||
PonyDiets.getInstance().getDiet(pony).appendTooltip(stack, pony, lines, type);
|
||||
if (pony != null) {
|
||||
PonyDiets.getInstance().getDiet(pony).appendTooltip(stack, pony, lines, type);
|
||||
}
|
||||
}
|
||||
|
||||
private <T extends TooltipAppender> void appendTooltip(ItemStack stack, ComponentType<T> componentType, Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type) {
|
||||
|
|
Loading…
Reference in a new issue