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

Chunk snapshot returned by World#getEmptyChunkSnapshot(int,int,boolean,boolean) thinks every block has PLAINS biome

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • CraftBukkit version 3551-Spigot-14a2382-9a8e080 (MC: 1.19) (Implementing API version 1.19-R0.1-SNAPSHOT)
    • Yes

      Calling ChunkSnapshot#getBiome(int, int, int) always returns PLAINS when called on an empty chunk snapshot returned from World#getEmptyChunkSnapshot(int, int, boolean, boolean) when both boolean arguments are set to true.

      Whether or not the chunk has been generated/visited does not affect this behavior.

      Since the documentation says that this method is used to "Get empty chunk snapshot (equivalent to all air blocks), optionally including valid biome data. Used for representing an ungenerated chunk, or for fetching only biome data without loading a chunk.", either the documentation is wrong or the implementation of the method is bugged.

       

      Minimal Reproduction Plugin: Run /demonstratebug as a player to print biome information from the empty snapshots of the player's chunk and of a random chunk to the console.

            Unassigned Unassigned
            Sigong Ethan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: