Why is this checking playerViewDistance and xOffset? Also wouldn't this be simpler logic to just do if (xOffset != 0 || zOffset != 0)
On top of that, shouldn't we just noop out filterChunkLoadQueue and just inset a better pattern instead of sorting it after the fact?