Repair language entries for Ihan Crystal

This commit is contained in:
Zontreck 2024-02-21 17:36:26 -07:00
parent 935ca28721
commit 39974cb4c1
2 changed files with 3 additions and 3 deletions

View file

@ -48,7 +48,7 @@ mod_name=Thresholds
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=GPLv3
# The mod version. See https://semver.org/
mod_version=1201.4.022124.1729
mod_version=1201.4.022124.1732
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
# This should match the base package used for the mod sources.
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html

View file

@ -51,12 +51,12 @@ public class IhanCrystal extends Item{
public void appendHoverText(ItemStack stack, Level p_41422_, List<Component> tooltip, TooltipFlag p_41424_) {
assertTag(stack);
tooltip.add(ChatHelpers.macro("!Dark_Green!Stored XP: !Dark_Red!" + stack.getTag().getInt(TAG_XP) + "!Dark_Green! level" + Pluralize(stack.getTag().getInt(TAG_XP), "level")));
tooltip.add(ChatHelpers.macro("!Dark_Green!Stored XP: !Dark_Red!" + stack.getTag().getInt(TAG_XP) + "!Dark_Green! " + Pluralize(stack.getTag().getInt(TAG_XP), "level")));
}
private String Pluralize(int num, String str) {
return "" + num + " " + (num > 1 ? str + "s" : str);
return (num > 1 ? str + "s" : str);
}
@Override