Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-6034

World.getWorldFolder() includes the dot in the path (world/.), breaking behavior

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • Ubuntu 20.04 LTS 64bit

      OpenJDK 11.0.8

       

    • This server is running CraftBukkit version git-Spigot-9639cf7-0458f60 (MC: 1.16.1) (Implementing API version 1.16.1-R0.1-SNAPSHOT)
    • Yes

      In the case of a world named "world", the method World.getWorldFolder() now returns a File referring to "./world/." instead of "./world", which refers to the same folder but calling getParentFile() now returns "./world" instead of the containing folder ".", breaking plugins that use this. It works correctly on versions up to 1.15.2.

       

            Unassigned Unassigned
            NorbiPeti Norbert
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: