Skip to content

Commit

Permalink
changed lang of added by tooltip, made it only appear on material ite…
Browse files Browse the repository at this point in the history
…ms added by the material system
  • Loading branch information
Trinsdar committed Jan 12, 2025
1 parent 2ce4f47 commit 58b1fc5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ protected void customTranslations() {
add("antimatter.tooltip.energy", "Energy");
add("antimatter.tooltip.heat_capacity", "Heat capacity");
add("antimatter.tooltip.heat_capacity_total", "Heat capacity (total)");
add("antimatter.tooltip.material_modid", "Added by: %s");
add("antimatter.tooltip.material_modid", "Material added by: %s");
add("antimatter.tooltip.occurrence", "Indicates occurrence of %s");
add("antimatter.tooltip.behaviour.aoe_enabled", "%s Enabled");
add("antimatter.tooltip.behaviour.aoe_disabled", "%s Disabled");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ public static void addTooltipsForMaterialItems(ItemStack stack, Material mat, Ma
if (mat.getElement() != null){
tooltip.add(Utils.literal("Is Element"));
}
tooltip.add(Utils.translatable("antimatter.tooltip.material_modid", AntimatterPlatformUtils.INSTANCE.getModName(mat.materialDomain())));
if (stack.getItem() instanceof MaterialItem) {
tooltip.add(Utils.translatable("antimatter.tooltip.material_modid", AntimatterPlatformUtils.INSTANCE.getModName(mat.materialDomain())));
}
}

@Override
Expand Down

0 comments on commit 58b1fc5

Please sign in to comment.