mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-01 20:50:41 +01:00
Merge pull request #4 in SPIGOT/craftbukkit from ~MIKEPRIMM/craftbukkit:mikeprimm/SPIGOT-29 to master
* commit 'dd33bcf6a53149d3813d128d5e93b5bf5ca69711': Fix chunk snapshot generation (needed for Dynmap)
This commit is contained in:
commit
c61594c782
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…
Reference in a new issue