Skip to content

Commit

Permalink
feat: fluid tooltips now work only with the right storage key
Browse files Browse the repository at this point in the history
  • Loading branch information
bruberu committed Jul 7, 2024
1 parent b80623b commit 41d7bd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/gregtech/api/util/FluidTooltipUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ public static Supplier<List<String>> createFluidTooltip(@Nullable Material mater
tooltip.add(I18n.format("gregtech.fluid.temperature.cryogenic"));
}

if (material.hasProperty(PropertyKey.COOLANT)) {
if (material.hasProperty(PropertyKey.COOLANT) &&
material.getProperty(PropertyKey.COOLANT).isCorrectFluid(material, fluid)) {
tooltip.add(I18n.format("gregtech.coolant.general"));
tooltip.add(I18n.format("gregtech.coolant.boiling_point",
material.getProperty(PropertyKey.COOLANT).getBoilingPoint()));
Expand Down

0 comments on commit 41d7bd7

Please sign in to comment.