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

You can create worlds with same lowercase name resulting in multiple worlds using same icon

XMLWordPrintable

    • Confirmed

      The bug

      You can create multiple worlds with different names which are equal when converted to lowercase. This results in these worlds all using the same icon.

      This can be seen on operating systems which allow folders with the same name but different capitalization (like Linux) and with special casing characters.

      How to reproduce (Linux)

      1. Create a world
      2. Create a world with the same name but different capitalization
        → You will notice that both worlds use the same icon

      How to reproduce (any OS)

      1. Create a world with the name (this is not an "i", please copy the character)
        İ
        
      2. Create a world with the name (this is not a normal "i", please copy the characters)

        → You will notice that both worlds use the same icon

      Code analysis

      Based on 1.11 decompiled using MCP 9.35 rc1

      World icons are accessed with resource locations. These resource locations are always in lowercase. Therefor multiple worlds whose names are equal when converted to lowercase get the same world icon resource location.

      As this is how this resource location concept is implemented, the fix should probably be to prevent world folder names which are equal after converting the name to lowercase. This would require an upgrade path which converts existing worlds as well.

        1. MC-112053.png
          MC-112053.png
          97 kB
        2. Bug.png
          Bug.png
          25 kB

            Unassigned Unassigned
            Scarycrumb45 Robert Wadley
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: