This commit is contained in:
TheMode 2021-06-11 17:38:45 +02:00
parent 7079225045
commit 7a76040457
2 changed files with 1 additions and 8 deletions

View File

@ -96,7 +96,7 @@ public class ChunkDataPacket implements ServerPacket, CacheablePacket {
final int maskSize = maskMap.size();
writer.writeVarInt(maskSize);
for (int i = 0; i < maskSize; i++) {
final long value = maskMap.containsKey(i) ? maskMap.get(i) : 0;
final long value = maskMap.getOrDefault(i, 0);
writer.writeLong(value);
}

View File

@ -22,13 +22,6 @@ public class ChunkGeneratorDemo implements ChunkGenerator {
batch.setBlock(x, y, z, Block.STONE);
}
}
for (short x = 0; x < Chunk.CHUNK_SIZE_X; x++)
for (short z = 0; z < Chunk.CHUNK_SIZE_Z; z++) {
for (short y = 250; y < 300; y++) {
batch.setBlock(x, y, z, Block.STONE);
}
}
}
@Override