Fixed air propagation above/below world limits

This commit is contained in:
Unknown 2018-03-03 11:32:00 +01:00
parent 6bbe69b631
commit 3f23a398f2

View file

@ -341,6 +341,11 @@ public class ChunkData {
}
public void setDataAir(final int x, final int y, final int z, final int dataAirBlock) {
// ignore out of world requests
if (y < 0 || y > 255) {
return;
}
final int indexData = getDataIndex(x, y, z);
// get segment