Fix chunk snapshot generation (needed for Dynmap)

By: Mike Primm <mike@primmhome.com>
This commit is contained in:
CraftBukkit/Spigot 2014-11-28 18:30:59 -06:00
parent a134a4961c
commit b6f610a49b

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;