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

Saving a structure to a sub folder fails if the folder does not exist yet

    XMLWordPrintable

    Details

    • Confirmation Status:
      Confirmed

      Description

      The bug

      See title, saving a structure with a sub folder (eg "test/test") returns "unable to save structure" if the folder does not exist (it works fine if the folder exists).

      Code analysis

      TemplateManager.writeTemplate(MinecraftServer server, ResourceLocation id) returns false if creating a new instance of FileOutputStream throws a FileNotFoundException when the specified directory does not exist.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              NoUser No User
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                CHK: