diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/event/TooltipEvent.java b/src/main/java/de/ellpeck/actuallyadditions/mod/event/TooltipEvent.java index 49dae44e4..334f28ff8 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/event/TooltipEvent.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/event/TooltipEvent.java @@ -63,8 +63,9 @@ public class TooltipEvent{ //Metadata int meta = event.getItemStack().getItemDamage(); + int max = event.getItemStack().getMaxDamage(); event.getToolTip().add(ADVANCED_INFO_HEADER_PRE+StringUtil.localize("tooltip."+ModUtil.MOD_ID+".meta.desc")+":"); - event.getToolTip().add(ADVANCED_INFO_TEXT_PRE+meta); + event.getToolTip().add(ADVANCED_INFO_TEXT_PRE+meta+(max > 0 ? "/"+max : "")); //Unlocalized Name String metaName = event.getItemStack().getItem().getUnlocalizedName(event.getItemStack());