mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 03:25:15 +01:00
Fix chunk snapshot generation (needed for Dynmap)
This commit is contained in:
parent
585a827dcd
commit
dd33bcf6a5
@ -168,7 +168,8 @@ public class CraftChunk implements Chunk {
|
|||||||
|
|
||||||
// Copy base IDs
|
// Copy base IDs
|
||||||
for (int j = 0; j < 4096; j++) {
|
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());
|
blockids[j] = (short) net.minecraft.server.Block.getId(blockData.getBlock());
|
||||||
int data = blockData.getBlock().toLegacyData(blockData);
|
int data = blockData.getBlock().toLegacyData(blockData);
|
||||||
int jj = j >> 1;
|
int jj = j >> 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user