From 8a9b88d0cbb2ecae5518016ad2b8e0f7974df86a Mon Sep 17 00:00:00 2001 From: Nick Date: Wed, 17 Feb 2016 16:10:16 -0800 Subject: [PATCH] Sigils now cut their description tooltip if too long --- .../java/WayofTime/bloodmagic/item/sigil/ItemSigilBase.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/WayofTime/bloodmagic/item/sigil/ItemSigilBase.java b/src/main/java/WayofTime/bloodmagic/item/sigil/ItemSigilBase.java index e092b36b..d4e23407 100644 --- a/src/main/java/WayofTime/bloodmagic/item/sigil/ItemSigilBase.java +++ b/src/main/java/WayofTime/bloodmagic/item/sigil/ItemSigilBase.java @@ -8,13 +8,12 @@ import WayofTime.bloodmagic.util.helper.TextHelper; import lombok.Getter; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; -import net.minecraft.util.BlockPos; -import net.minecraft.util.EnumFacing; import net.minecraft.util.StatCollector; import net.minecraft.world.World; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; +import java.util.Arrays; import java.util.List; @Getter @@ -53,7 +52,7 @@ public class ItemSigilBase extends ItemBindable implements ISigil public void addInformation(ItemStack stack, EntityPlayer player, List tooltip, boolean advanced) { if (StatCollector.canTranslate(tooltipBase + "desc")) - tooltip.add(TextHelper.localizeEffect(tooltipBase + "desc")); + tooltip.addAll(Arrays.asList(TextHelper.cutLongString(TextHelper.localizeEffect(tooltipBase + "desc")))); super.addInformation(stack, player, tooltip, advanced); }