ChunkGenerator causes java.lang.ClassCastException

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • None
    • Affects Version/s: None
    • Environment:

      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;
      }

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

              Created:
              Updated:
              Resolved: