@zardoy/flying-squid 0.0.128 → 0.0.129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -687,7 +687,9 @@ const player = function (player, serv, settings) {
|
|
|
687
687
|
}, ({ x, z, chunk } /* : {x, z, chunk: import('prismarine-chunk').PCChunk} */) => {
|
|
688
688
|
serv._finishPlayerChunkLoading(chunkX, chunkZ, player);
|
|
689
689
|
const newLightsFormat = serv.supportFeature('newLightingDataFormat');
|
|
690
|
-
|
|
690
|
+
// before 1.14 the light is inside the chunk data (dump()): dumpLight() returns nothing there, and every chunk of a 1.12 / 1.13 world
|
|
691
|
+
// failed to send ("reading 'skyLightMask'") so such worlds never loaded
|
|
692
|
+
const dumpedLights = chunk.dumpLight?.() ?? {};
|
|
691
693
|
const newLightsData = newLightsFormat ? packetLightArrays(chunk, dumpedLights) : undefined;
|
|
692
694
|
const chunkBuffer = chunk.dump();
|
|
693
695
|
const bitMap = chunk.getMask();
|