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

Chunk.load(true); is broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • None

      Chunk.load(true); Does not generate the chunk. It does nothing.
      Here is the proof:

          @EventHandler
          public void onT(PlayerChatEvent event) {
              Chunk c = event.getPlayer().getWorld().getChunkAt(Integer.parseInt(event.getMessage().split(",")[0]), Integer.parseInt(event.getMessage().split(",")[1]));
              long start = System.currentTimeMillis();
              c.load(true);
              System.out.println("Took " + (System.currentTimeMillis() - start) + " ms to generate chunk at " + c.getX() + ", " + c.getZ());
          }
      

      Outputs this: http://pastebin.com/ELgbXQxx

      As you can see in the log, chunk.load(true) takes 0ms to finish. Normally a chunk generating takes around 25ms.

            Unassigned Unassigned
            NubeBuster Mark Cockram
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: