diff --git a/src/main/java/xyz/nucleoid/extras/integrations/game/StatisticsIntegration.java b/src/main/java/xyz/nucleoid/extras/integrations/game/StatisticsIntegration.java index 0d76173..e3dfd80 100644 --- a/src/main/java/xyz/nucleoid/extras/integrations/game/StatisticsIntegration.java +++ b/src/main/java/xyz/nucleoid/extras/integrations/game/StatisticsIntegration.java @@ -101,14 +101,14 @@ public static Text convertForDisplay(Identifier key, Number number) { var seconds = number.doubleValue() / 20; var text = Text.empty(); if (seconds > 60) { - text.append(Text.translatable("gui.minutes", MathHelper.floor(seconds / 60))); + text.append(Text.stringifiedTranslatable("gui.minutes", MathHelper.floor(seconds / 60))); } if (seconds % 60 > 0.01 || text.getSiblings().isEmpty()) { if (!text.getSiblings().isEmpty()) { text.append(" "); } - text.append(Text.translatable("text.nucleoid_extras.seconds", Text.literal((seconds - (int) seconds >= 0.005) ? String.format("%.2f", seconds % 60) : ("" + ((int)seconds) % 60)))); + text.append(Text.stringifiedTranslatable("text.nucleoid_extras.seconds", Text.literal((seconds - (int) seconds >= 0.005) ? String.format("%.2f", seconds % 60) : ("" + ((int)seconds) % 60)))); } return text; } diff --git a/src/main/java/xyz/nucleoid/extras/sidebar/NucleoidSidebar.java b/src/main/java/xyz/nucleoid/extras/sidebar/NucleoidSidebar.java index ddae771..6a0853c 100644 --- a/src/main/java/xyz/nucleoid/extras/sidebar/NucleoidSidebar.java +++ b/src/main/java/xyz/nucleoid/extras/sidebar/NucleoidSidebar.java @@ -3,6 +3,7 @@ import eu.pb4.sidebars.api.Sidebar; import eu.pb4.sidebars.api.lines.LineBuilder; import net.minecraft.registry.RegistryKey; +import net.minecraft.scoreboard.number.BlankNumberFormat; import net.minecraft.server.MinecraftServer; import net.minecraft.server.network.ServerPlayerEntity; import net.minecraft.text.Style; @@ -67,6 +68,7 @@ private static Text[] createAnimatedTitle(String string, Text append, Style left private NucleoidSidebar() { this.widget = new Sidebar(TITLE_MAIN, Sidebar.Priority.LOW); + this.widget.setDefaultNumberFormat(BlankNumberFormat.INSTANCE); this.widget.show(); }