From c54bd207b8514d560a92721c118b15314be606ae Mon Sep 17 00:00:00 2001 From: BluSunrize Date: Tue, 3 Oct 2023 16:50:32 +0200 Subject: [PATCH] Fix localization of perks on revolver parts, closes #5698 --- changelog.md | 1 + .../immersiveengineering/common/items/RevolverItem.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 285eb39276..51c31a22fd 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,6 @@ ##### Version 1.19.4-9.4.1-pre - All features from 9.2.3 +- Fix localization of perks on revolver parts (BluSunrize) ##### Version 1.19.2-9.2.3-167 - Change "Superior Weaponry" advancement to hint at its potential to spawn new illagers in raids (BluSunrize) diff --git a/src/main/java/blusunrize/immersiveengineering/common/items/RevolverItem.java b/src/main/java/blusunrize/immersiveengineering/common/items/RevolverItem.java index 3ef8920297..47488d06ea 100644 --- a/src/main/java/blusunrize/immersiveengineering/common/items/RevolverItem.java +++ b/src/main/java/blusunrize/immersiveengineering/common/items/RevolverItem.java @@ -731,7 +731,7 @@ public static Component getFormattedName(Component name, CompoundTag perksTag) if(iTier==0) iTier = 1; String translate = Lib.DESC_INFO+"revolver.perk."+perk.name().toLowerCase(Locale.US)+".tier"+iTier; - name = Component.translatable(translate).append(name); + name = Component.translatable(translate, name); } int rarityTier = (int)Math.ceil(Mth.clamp(averageTier+3, 0, 6)/6*5);