Fix a MAJOR bug caused by the JetBrains™ AutoFormatter™

This commit is contained in:
0x22 2019-09-19 17:36:06 -04:00
parent b63c54b657
commit fbabbe69c0
No known key found for this signature in database
GPG Key ID: E6FBD2F5F69065FD

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());
}