mirror of https://github.com/cabaletta/baritone
This null check should fix it lol
This commit is contained in:
parent
854985e5b5
commit
039898c654
|
@ -162,7 +162,7 @@ public enum WorldScanner implements IWorldScanner {
|
||||||
final int imax = 1 << 12;
|
final int imax = 1 << 12;
|
||||||
for (int i = 0; i < imax; i++) {
|
for (int i = 0; i < imax; i++) {
|
||||||
BlockState state = bsc.getAtPalette(storage[i]);
|
BlockState state = bsc.getAtPalette(storage[i]);
|
||||||
if (filter.has(state)) {
|
if (state != null && filter.has(state)) {
|
||||||
int y = yReal | ((i >> 8) & 15);
|
int y = yReal | ((i >> 8) & 15);
|
||||||
if (result.size() >= max) {
|
if (result.size() >= max) {
|
||||||
if (Math.abs(y - playerY) < yLevelThreshold) {
|
if (Math.abs(y - playerY) < yLevelThreshold) {
|
||||||
|
|
Loading…
Reference in New Issue