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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • Environment:

      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.

       

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

              Created:
              Updated:
              Resolved: