Clarify error in BlockChangeRecord1_16_2

This commit is contained in:
KennyTV 2020-09-13 15:26:37 +02:00
parent 8d904ca010
commit e502f2c96d
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -36,7 +36,7 @@ public class BlockChangeRecord1_16_2 implements BlockChangeRecord {
@Override
public short getY(int chunkSectionY) {
Preconditions.checkArgument(chunkSectionY >= 0 && chunkSectionY < 16);
Preconditions.checkArgument(chunkSectionY >= 0 && chunkSectionY < 16, "Invalid chunkSectionY: " + chunkSectionY);
return (short) ((chunkSectionY << 4) + sectionY);
}