Merge pull request #4 in SPIGOT/craftbukkit from ~MIKEPRIMM/craftbukkit:mikeprimm/SPIGOT-29 to master

* commit 'b6f610a49b4c2250e354c986175bee667453d53f':
  Fix chunk snapshot generation (needed for Dynmap)

By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
CraftBukkit/Spigot 2014-11-29 12:41:51 +02:00
commit 827be39e55

View file

@ -168,7 +168,8 @@ public class CraftChunk implements Chunk {
// Copy base IDs
for (int j = 0; j < 4096; j++) {
IBlockData blockData = net.minecraft.server.Block.getByCombinedId(baseids[j]);
if (baseids[j] == 0) continue;
IBlockData blockData = (IBlockData) net.minecraft.server.Block.d.a(baseids[j]);
blockids[j] = (short) net.minecraft.server.Block.getId(blockData.getBlock());
int data = blockData.getBlock().toLegacyData(blockData);
int jj = j >> 1;