diff options
author | Mike Primm <mike@primmhome.com> | 2014-11-28 18:30:59 -0600 |
---|---|---|
committer | Mike Primm <mike@primmhome.com> | 2014-11-28 18:30:59 -0600 |
commit | dd33bcf6a53149d3813d128d5e93b5bf5ca69711 (patch) | |
tree | 3ba10dd289d4afd7ddbd472138eec60269dd5f06 /src/main/java/org/bukkit | |
parent | 585a827dcde0a7700cfeb21e2802f143f383c38e (diff) | |
download | craftbukkit-dd33bcf6a53149d3813d128d5e93b5bf5ca69711.tar craftbukkit-dd33bcf6a53149d3813d128d5e93b5bf5ca69711.tar.gz craftbukkit-dd33bcf6a53149d3813d128d5e93b5bf5ca69711.tar.lz craftbukkit-dd33bcf6a53149d3813d128d5e93b5bf5ca69711.tar.xz craftbukkit-dd33bcf6a53149d3813d128d5e93b5bf5ca69711.zip |
Fix chunk snapshot generation (needed for Dynmap)
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftChunk.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftChunk.java b/src/main/java/org/bukkit/craftbukkit/CraftChunk.java index 0cba7fd9..9b481a08 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftChunk.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftChunk.java @@ -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; |