Skip to content

Commit 18d786e

Browse files
authored
Minor fix loadParsedLights type (#239)
* fix type! * fix again! * and fix again!
1 parent eb39a90 commit 18d786e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

types/index.d.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ declare class PCChunk extends CommonChunk {
3434
getBlockData(pos: Vec3): number
3535
getBlockLight(pos: Vec3): number
3636
getSkyLight(pos: Vec3): number
37-
getBiome(pos: Vec3): number
37+
getBiome(pos: Vec3): number
3838
setBlockStateId(pos: Vec3, stateId: number): number
3939
setBlockType(pos: Vec3, id: number): void
4040
setBlockData(pos: Vec3, data: Buffer): void
@@ -46,7 +46,7 @@ declare class PCChunk extends CommonChunk {
4646
dumpBiomes(): Array<number>
4747
dumpLight(): Buffer
4848
loadLight(data: Buffer, skyLightMask: number, blockLightMask: number, emptySkyLightMask?: number, emptyBlockLightMask?: number): void
49-
loadLightParse(skyLight: Buffer[], blockLight: Buffer[], skyLightMask: number[][], blockLightMask: number[][], emptySkyLightMask: number[][], emptyBlockLightMask: number[][]): void
49+
loadParsedLight?(skyLight: Buffer[], blockLight: Buffer[], skyLightMask: number[][], blockLightMask: number[][], emptySkyLightMask: number[][], emptyBlockLightMask: number[][]): void
5050
loadBiomes(newBiomesArray: Array<number>): void;
5151
dump(bitMap?: number, skyLightSent?: boolean): Buffer
5252
load(data: Buffer, bitMap?: number, skyLightSent?: boolean, fullChunk?: boolean): void
@@ -113,7 +113,7 @@ declare class BedrockChunk extends CommonChunk {
113113
maxCY: number
114114
// The version of the chunk column (analog to DataVersion on PCChunk)
115115
chunkVersion: number
116-
// Holds all the block entities in the chunk, the string keys are
116+
// Holds all the block entities in the chunk, the string keys are
117117
// the concatenated chunk column-relative position of the block.
118118
blockEntities: Record<string, NBT>
119119
// Holds entities in the chunk, the string key is the entity ID
@@ -174,7 +174,7 @@ declare class BedrockChunk extends CommonChunk {
174174
networkEncodeSubChunkNoCache(y: number): Promise<Buffer>
175175

176176
/**
177-
*
177+
*
178178
* @param blobs The blob hashes sent in the SubChunk packet
179179
* @param blobStore The Blob Store holding the chunk data
180180
* @param payload The remaining data sent in the SubChunk packet, border blocks
@@ -198,7 +198,7 @@ declare class BedrockChunk extends CommonChunk {
198198
loadHeights(map: Uint16Array): void
199199
writeHeightMap(stream): void
200200

201-
//
201+
//
202202
// Section management
203203
getSection(pos): SubChunk
204204
// Returns chunk at a Y index, adjusted for chunks at negative-Y
@@ -226,4 +226,4 @@ export const enum BlobType {
226226
Biomes = 1,
227227
}
228228

229-
export default function loader(mcVersionOrRegistry: string | Registry): typeof PCChunk | typeof BedrockChunk
229+
export default function loader(mcVersionOrRegistry: string | Registry): typeof PCChunk | typeof BedrockChunk

0 commit comments

Comments
 (0)