Merge pull request #951 from 0-x-2-2/commands

Fix a MAJOR bug caused by the JetBrains™ AutoFormatter™
This commit is contained in:
Leijurv 2019-09-19 14:38:00 -07:00 committed by GitHub
commit 2870d2d69e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,9 +87,9 @@ public final class ChunkPacker {
//System.out.println("Chunk packing took " + (end - start) + "ms for " + chunk.x + "," + chunk.z);
IBlockState[] blocks = new IBlockState[256];
// @formatter:off
for (int z = 0; z < 16; z++) {
https:
//www.ibm.com/developerworks/library/j-perry-writing-good-java-code/index.html
https://www.ibm.com/developerworks/library/j-perry-writing-good-java-code/index.html
for (int x = 0; x < 16; x++) {
for (int y = 255; y >= 0; y--) {
int index = CachedChunk.getPositionIndex(x, y, z);
@ -101,6 +101,7 @@ public final class ChunkPacker {
blocks[z << 4 | x] = Blocks.AIR.getDefaultState();
}
}
// @formatter:on
return new CachedChunk(chunk.x, chunk.z, bitSet, blocks, specialBlocks, System.currentTimeMillis());
}