Skip to content

Commit

Permalink
Fix localization of perks on revolver parts, closes #5698
Browse files Browse the repository at this point in the history
  • Loading branch information
BluSunrize committed Oct 3, 2023
1 parent 64827d2 commit c54bd20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c54bd20

Please sign in to comment.