y is also an int in Chunk#getData

This commit is contained in:
jglrxavpok 2020-07-01 00:11:15 +02:00
parent 450603cac8
commit e60efca907

View File

@ -214,7 +214,7 @@ public final class Chunk implements Viewable {
refreshBlockValue(x, y, z, blockId, customBlockId);
}
public Data getData(int x, byte y, int z) {
public Data getData(int x, int y, int z) {
int index = getBlockIndex(x, y, z);
return getData(index);
}