diff --git a/build.gradle b/build.gradle index 15d181af..f72fb497 100644 --- a/build.gradle +++ b/build.gradle @@ -61,6 +61,9 @@ dependencies { modApi "com.sollace:fabwork:${project.fabwork_version}" include "com.sollace:fabwork:${project.fabwork_version}" + compileOnly files('lib/Romanizer-1.0.0.jar') + include files('lib/Romanizer-1.0.0.jar') + modCompileOnly "com.terraformersmc:modmenu:${project.modmenu_version}" modCompileOnly "dev.emi:trinkets:${project.trinkets_version}" diff --git a/lib/Romanizer-1.0.0.jar b/lib/Romanizer-1.0.0.jar new file mode 100644 index 00000000..fea9f62c Binary files /dev/null and b/lib/Romanizer-1.0.0.jar differ diff --git a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/SpellbookProfilePageContent.java b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/SpellbookProfilePageContent.java index 8c12a1dd..0fadc54e 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/SpellbookProfilePageContent.java +++ b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/SpellbookProfilePageContent.java @@ -143,7 +143,7 @@ public class SpellbookProfilePageContent extends DrawableHelper implements Spell font.draw(matrices, "Mana", -font.getWidth("Mana") / 2, y, SpellbookScreen.TITLE_COLOR); font.draw(matrices, manaString, -font.getWidth(manaString) / 2, y += font.fontHeight, SpellbookScreen.TITLE_COLOR); - Text levelString = I18n.hasTranslation("enchantment.level." + (currentLevel + 1)) ? Text.translatable("enchantment.level." + (currentLevel + 1)) : Text.literal(currentLevel >= 999 ? ">999" : "" + (currentLevel + 1)); + Text levelString = Text.literal(Romanizer.romanize(currentLevel + 1)); matrices.translate(-font.getWidth(levelString), -35, 0); matrices.scale(2F, 2F, 1);