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

WorldCreator 0 bytes regions files creating a world

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • None
    • CraftBukkit version dev-Spigot-d90018e-585ab5b (MC: 1.19.3) (Implementing API version 1.19.3-R0.1-SNAPSHOT)
    • Yes

      When i use the WorldCreator and/or MultiverseCore to create a world it sometimes returns me this error :

      [22:41:43] [Server thread/ERROR]: Failed to save chunk 6,-10
      java.lang.NullPointerException: Cannot invoke "net.minecraft.resources.MinecraftKey.toString()" because "minecraftkey1" is null
          at net.minecraft.world.level.chunk.storage.ChunkRegionLoader.a(ChunkRegionLoader.java:575) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3625-Spigot-d90018e-585ab5b]
          at net.minecraft.world.level.chunk.storage.ChunkRegionLoader.a(ChunkRegionLoader.java:486) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3625-Spigot-d90018e-585ab5b]
          at net.minecraft.server.level.PlayerChunkMap.b(PlayerChunkMap.java:928) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3625-Spigot-d90018e-585ab5b]
          at net.minecraft.server.level.PlayerChunkMap.d(PlayerChunkMap.java:893) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3625-Spigot-d90018e-585ab5b]
          at net.minecraft.server.level.PlayerChunkMap.b(PlayerChunkMap.java:562) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3625-Spigot-d90018e-585ab5b]
          at net.minecraft.server.level.PlayerChunkMap.a(PlayerChunkMap.java:524) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3625-Spigot-d90018e-585ab5b]
          at net.minecraft.server.level.ChunkProviderServer.a(ChunkProviderServer.java:391) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3625-Spigot-d90018e-585ab5b]
          at net.minecraft.server.level.WorldServer.a(WorldServer.java:382) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3625-Spigot-d90018e-585ab5b]
          at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1296) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3625-Spigot-d90018e-585ab5b]
          at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:388) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3625-Spigot-d90018e-585ab5b]
          at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1203) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3625-Spigot-d90018e-585ab5b]
          at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1019) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3625-Spigot-d90018e-585ab5b]
          at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:302) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3625-Spigot-d90018e-585ab5b]
          at java.lang.Thread.run(Thread.java:1589) ~[?:?] 

      Sometimes it just create an empty world, where there is only void and mca regions files are just empty at 0bytes.

      Even if i try to generate a world using Multiverse-Core from commands i get a void world/failed to save chunks.

      I don't know if it's spigot related or a plugin. But without any plugins and only Multiverse-Core on a raw server it does the same.

      Here also is the code i use to create a world in my plugin : 

      WorldCreator worldCreator = new WorldCreator(player.getUniqueId().toString() + "_" + index);
      worldCreator.environment(environment);
      worldCreator.type(worldType);
      worldCreator.generateStructures(generateStructure);
      World world = worldCreator.createWorld(); 

            md_5 md_5
            MrKayJayDee Killian' Dal-Cin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: