Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-19 13:00:06 +01:00
Ignore invalid blocks in ChunkSnapshots
Dieser Commit ist enthalten in:
Ursprung
a2c4d7e150
Commit
f498585ecc
@ -170,6 +170,7 @@ public class CraftChunk implements Chunk {
|
|||||||
for (int j = 0; j < 4096; j++) {
|
for (int j = 0; j < 4096; j++) {
|
||||||
if (baseids[j] == 0) continue;
|
if (baseids[j] == 0) continue;
|
||||||
IBlockData blockData = (IBlockData) net.minecraft.server.Block.d.a(baseids[j]);
|
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());
|
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;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren