mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 01:25:03 +01:00
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:
commit
827be39e55
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue