This null check should fix it lol

This commit is contained in:
Brady 2020-07-19 16:26:18 -05:00
parent 854985e5b5
commit 039898c654
No known key found for this signature in database
GPG Key ID: 73A788379A197567
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ public enum WorldScanner implements IWorldScanner {
final int imax = 1 << 12;
for (int i = 0; i < imax; i++) {
BlockState state = bsc.getAtPalette(storage[i]);
if (filter.has(state)) {
if (state != null && filter.has(state)) {
int y = yReal | ((i >> 8) & 15);
if (result.size() >= max) {
if (Math.abs(y - playerY) < yLevelThreshold) {