mirror of
https://github.com/Minestom/Minestom.git
synced 2024-06-25 05:54:53 +02:00
Cleanup
This commit is contained in:
parent
7079225045
commit
7a76040457
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user