Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-123586

Debug pie chart uses locale specific number formatting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 18w30b
    • Minecraft 1.12.2, Minecraft 17w50a, Minecraft 18w21b, Minecraft 1.13-pre3
    • Confirmed

      The bug

      The debug pie chart uses the OS locale specific number formatting, for example for German this means a comma (,) is used to separate the integer part of a number from the decimal part.

      How to reproduce

      1. Change the locale setting in your OS to for example German
      2. Open Minecraft
      3. Display the debug pie chart by pressing SHIFT + F3

      Code analysis

      Based on 1.12.2 decompiled using MCP 9.40

      A java.text.DecimalFormat object using the default locale is assigned to net.minecraft.client.Minecraft.displayDebugInfo(long).decimalformat.

            grum [Mojang] Grum (Erik Broes)
            marcono1234 [Mod] Marcono1234
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: