a
This commit is contained in:
parent
071a005173
commit
8d9b6429c6
2 changed files with 4 additions and 3 deletions
plugins
|
@ -1,15 +1,15 @@
|
|||
import { default as c_loader } from 'prismarine-chunk'
|
||||
import loader from 'prismarine-chunk'
|
||||
import Vec3 from 'vec3'
|
||||
const rd = 8
|
||||
|
||||
export default function load (b) {
|
||||
const c = c_loader(b._client.version)
|
||||
const Chunk = loader(b._client.version)
|
||||
b.chunks = {}
|
||||
b._client.on('map_chunk', data => {
|
||||
if (!b.chunks[data.x]) {
|
||||
b.chunks[data.x] = []
|
||||
}
|
||||
const chunk = new c()
|
||||
const chunk = new Chunk()
|
||||
chunk.load(data.chunkData)
|
||||
b.chunks[data.x][data.z] = chunk
|
||||
})
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import uuidToInt from '../util/uuidtoint.js'
|
||||
import plainParser from '../util/chatparse_plain.js'
|
||||
import mcParser from '../util/chatparse_mc.js'
|
||||
import Vec3 from 'vec3'
|
||||
const cs = { // This value will be removed soon, as changing it can break things.
|
||||
x: 16,
|
||||
y: 1,
|
||||
|
|
Loading…
Add table
Reference in a new issue