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

Bukkit.createWorld() Does not respect the generatorSettings in the WorldCreator object

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None
    • This server is running CraftBukkit version git-Spigot-c3a49df-2f18108 (MC: 1.16.1) (Implementing API version 1.16.1-R0.1-SNAPSHOT)
    • Yes

      Creating a world with defined generatorSettings in the WorldCreator object does not affect the outcome of the world. This did not occur in 1.15.2.

      It could be a problem with the properties settings when creating a world, or it could have to do with the JSON itself has changed and the docs have not updated. That's just my speculation though.

          WorldCreator creator = new WorldCreator("test");
          creator.type(Objects.requireNonNull(WorldType.valueOf("FLAT")));
          creator.generatorSettings("{\"layers\": [{\"block\": \"air\",\"height\": 1}],\"biome\": \"plains\"}");
          Bukkit.createWorld(creator);
      

       

            Unassigned Unassigned
            TheAndroidMan Martoph
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: