Refactored activeChunkSet for vanilla compatibility. Fixes #1389