Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 58b1fc5

Browse files
committed
changed lang of added by tooltip, made it only appear on material items added by the material system
1 parent 2ce4f47 commit 58b1fc5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

common/src/main/java/muramasa/antimatter/datagen/providers/AntimatterLanguageProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ protected void customTranslations() {
384384
add("antimatter.tooltip.energy", "Energy");
385385
add("antimatter.tooltip.heat_capacity", "Heat capacity");
386386
add("antimatter.tooltip.heat_capacity_total", "Heat capacity (total)");
387-
add("antimatter.tooltip.material_modid", "Added by: %s");
387+
add("antimatter.tooltip.material_modid", "Material added by: %s");
388388
add("antimatter.tooltip.occurrence", "Indicates occurrence of %s");
389389
add("antimatter.tooltip.behaviour.aoe_enabled", "%s Enabled");
390390
add("antimatter.tooltip.behaviour.aoe_disabled", "%s Disabled");

common/src/main/java/muramasa/antimatter/material/MaterialItem.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ public static void addTooltipsForMaterialItems(ItemStack stack, Material mat, Ma
108108
if (mat.getElement() != null){
109109
tooltip.add(Utils.literal("Is Element"));
110110
}
111-
tooltip.add(Utils.translatable("antimatter.tooltip.material_modid", AntimatterPlatformUtils.INSTANCE.getModName(mat.materialDomain())));
111+
if (stack.getItem() instanceof MaterialItem) {
112+
tooltip.add(Utils.translatable("antimatter.tooltip.material_modid", AntimatterPlatformUtils.INSTANCE.getModName(mat.materialDomain())));
113+
}
112114
}
113115

114116
@Override

0 commit comments

Comments
 (0)