Skip to content

Commit

Permalink
made modid tooltip visable without shift
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Dec 9, 2023
1 parent c21ddb8 commit f22c768
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ public static void addTooltipsForMaterialItems(ItemStack stack, Material mat, Ma
if (Screen.hasShiftDown()) {
tooltip.add(Utils.translatable("antimatter.tooltip.chemical_formula").append(": ").append(Utils.literal(mat.getChemicalFormula()).withStyle(ChatFormatting.DARK_AQUA)));
tooltip.add(Utils.translatable("antimatter.tooltip.mass").append(": ").append(Utils.literal(mat.getMass() + "").withStyle(ChatFormatting.DARK_AQUA)));
tooltip.add(Utils.translatable("antimatter.tooltip.material_modid", AntimatterPlatformUtils.getModName(mat.materialDomain())));
} else {
tooltip.add(Utils.translatable("antimatter.tooltip.formula").withStyle(ChatFormatting.AQUA).withStyle(ChatFormatting.ITALIC));
}
}
tooltip.add(Utils.translatable("antimatter.tooltip.material_modid", AntimatterPlatformUtils.getModName(mat.materialDomain())));
}

@Override
Expand Down

0 comments on commit f22c768

Please sign in to comment.