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

ChunkGenerator causes java.lang.ClassCastException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • None
    • Win10, Java 10

    • CraftBukkit version git-Spigot-1d0aef7-1fccb89 (MC: 1.13-pre7) (Implementing API version 1.13-pre7-R0.1-SNAPSHOT)

      Using WorldCreator#generator(new EmptyGenerator()) where EmptyGenerator extends ChunkGenerator causes a java.lang.ClassCastException: https://pastebin.com/63Zpxdsf

      Content of EmptyGenerator: https://pastebin.com/FkvjDmSD

      Maps#loadWorld method

      public static World loadWorld(WorldCreator creator) {
          creator.generator(new EmptyGenerator());
          World world = Bukkit.createWorld(creator);
          world.setAutoSave(false);
          return world;
      }

            Unassigned Unassigned
            HAlex Lorenzo Lapucci
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: