PrismarineJS/prismarine-chunk

this.sectionMask.toLongArray is not a function

Saiv46 opened this issue · 1 comments

TypeError: this.sectionMask.toLongArray is not a function
    at ChunkColumn.getMask (/root/flying-squid/node_modules/.pnpm/prismarine-chunk@1.26.0/node_modules/prismarine-chunk/src/pc/1.17/ChunkColumn.js:242:31)
    at /root/flying-squid/src/lib/plugins/world.js:175:23
    at Entity.behavior (/root/flying-squid/src/lib/behavior.js:24:14)
    at processTicksAndRejections (node:internal/process/task_queues:94:5)
    at async Entity.player.login (/root/flying-squid/src/lib/plugins/login.js:222:5)
    at async Server.<anonymous> (/root/flying-squid/src/lib/plugins/login.js:29:7)

Okay, this happens only for 1.17 and only because prismarine-provider-anvil sets sectionMask property to number, not BitArray

https://github.com/PrismarineJS/prismarine-provider-anvil/blob/master/src/1.14/chunk.js#L75