mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-24 18:07:39 +01:00
Ignore invalid blocks in ChunkSnapshots
This commit is contained in:
parent
a2c4d7e150
commit
f498585ecc
@ -170,6 +170,7 @@ public class CraftChunk implements Chunk {
|
||||
for (int j = 0; j < 4096; j++) {
|
||||
if (baseids[j] == 0) continue;
|
||||
IBlockData blockData = (IBlockData) net.minecraft.server.Block.d.a(baseids[j]);
|
||||
if (blockData == null) continue;
|
||||
blockids[j] = (short) net.minecraft.server.Block.getId(blockData.getBlock());
|
||||
int data = blockData.getBlock().toLegacyData(blockData);
|
||||
int jj = j >> 1;
|
||||
|
Loading…
Reference in New Issue
Block a user