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

CraftChunk.getChunkSnapshot() not mapping block IDs properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • None
    • None

      The getChunkSnapshot() call in CraftChunk is not mapping raw IDs to block ID:meta values properly, preventing dynmap from functioning properly.

      To correct this (I'll put in a PR as soon as my CLA is approved), change the line

      IBlockData blockData = (IBlockData) net.minecraft.server.Block.getByCombinedId(baseids[j]);

      To:

      IBlockData blockData = (IBlockData) net.minecraft.server.Block.d.a(baseids[j]);

      This works (by testing on Dynmap, which depends upon this call), and is based on the corresponding implementation in ChunkSection.getType(int, int, int).

            Thinkofdeath Thinkofname
            mikeprimm Mike Primm
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: