Skip to content

Commit

Permalink
Add backwards compatibility for the rename from "modifier.tool.reinfo…
Browse files Browse the repository at this point in the history
…rced" to "tool.reinforced" in TiC localization
  • Loading branch information
squeek502 committed Jan 6, 2015
1 parent 7a6a7c7 commit a0326ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions java/squeek/tictooltips/helpers/StringHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ public static String getKnockbackString(float knockback)
{
//localizationAlternatives.put("tic.string.name", "tictooltips.string.name");
localizationAlternatives.put("tool.unbreakable", "tictooltips.unbreakable");

// modifier.tool.reinforced got renamed to tool.reinforced; this enables a fallback for versions before that happened
localizationAlternatives.put("tool.reinforced", "modifier.tool.reinforced");
}

public static String getAlternativeLocalizedString(String unlocalized)
Expand Down

0 comments on commit a0326ad

Please sign in to comment.