{ "name": "pds", "version": "0.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "pds", "version": "0.0.0", "license": "MIT", "dependencies": { "@atproto/pds": "0.4.67" } }, "node_modules/@atproto-labs/fetch": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/@atproto-labs/fetch/-/fetch-0.1.1.tgz", "integrity": "sha512-X1zO1MDoJzEurbWXMAe1H8EZ995Xam/aXdxhGVrXmOMyPDuvBa1oxwh/kQNZRCKcMQUbiwkk+Jfq6ZkTuvGbww==", "license": "MIT", "dependencies": { "@atproto-labs/pipe": "0.1.0" }, "optionalDependencies": { "zod": "^3.23.8" } }, "node_modules/@atproto-labs/fetch-node": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/@atproto-labs/fetch-node/-/fetch-node-0.1.3.tgz", "integrity": "sha512-KX3ogPJt6dXNppWImQ9omfhrc8t73WrJaxHMphRAqQL8jXxKW5NBCTjSuwroBkJ1pj1aValBrc5NpdYu+H/9Qg==", "license": "MIT", "dependencies": { "@atproto-labs/fetch": "0.1.1", "@atproto-labs/pipe": "0.1.0", "ipaddr.js": "^2.1.0", "psl": "^1.9.0", "undici": "^6.14.1" } }, "node_modules/@atproto-labs/pipe": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/@atproto-labs/pipe/-/pipe-0.1.0.tgz", "integrity": "sha512-ghOqHFyJlQVFPESzlVHjKroP0tPzbmG5Jms0dNI9yLDEfL8xp4OFPWLX4f6T8mRq69wWs4nIDM3sSsFbFqLa1w==", "license": "MIT" }, "node_modules/@atproto-labs/simple-store": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/@atproto-labs/simple-store/-/simple-store-0.1.1.tgz", "integrity": "sha512-WKILW2b3QbAYKh+w5U2x6p5FqqLl0nAeLwGeDY+KjX01K4Dq3vQTR9b/qNp0jZm48CabPQVrqCv0PPU9LgRRRg==", "license": "MIT" }, "node_modules/@atproto-labs/simple-store-memory": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/@atproto-labs/simple-store-memory/-/simple-store-memory-0.1.1.tgz", "integrity": "sha512-PCRqhnZ8NBNBvLku53O56T0lsVOtclfIrQU/rwLCc4+p45/SBPrRYNBi6YFq5rxZbK6Njos9MCmILV/KLQxrWA==", "license": "MIT", "dependencies": { "@atproto-labs/simple-store": "0.1.1", "lru-cache": "^10.2.0" } }, "node_modules/@atproto/api": { "version": "0.13.14", "resolved": "https://registry.npmjs.org/@atproto/api/-/api-0.13.14.tgz", "integrity": "sha512-CG5UpjI1WwSasSJTGadmr07EwWvl5JV658YZHcwIIg+Psk5sDloQOUJckuo1MP6wke1z6p/BUoPL4lxAATzMzA==", "license": "MIT", "dependencies": { "@atproto/common-web": "^0.3.1", "@atproto/lexicon": "^0.4.2", "@atproto/syntax": "^0.3.0", "@atproto/xrpc": "^0.6.3", "await-lock": "^2.2.2", "multiformats": "^9.9.0", "tlds": "^1.234.0", "zod": "^3.23.8" } }, "node_modules/@atproto/aws": { "version": "0.2.7", "resolved": "https://registry.npmjs.org/@atproto/aws/-/aws-0.2.7.tgz", "integrity": "sha512-Hl6f8oeS7BFEGqx/VHI7MWU8KOlygrI4tUFz3dwXP+daW+TlCkDIXZycfm2oJhzSorkbXQ/pH7HMgtJEE6JEVQ==", "license": "MIT", "dependencies": { "@atproto/common": "^0.4.4", "@atproto/crypto": "^0.4.1", "@atproto/repo": "^0.5.3", "@aws-sdk/client-cloudfront": "^3.261.0", "@aws-sdk/client-kms": "^3.196.0", "@aws-sdk/client-s3": "^3.224.0", "@aws-sdk/lib-storage": "^3.226.0", "@noble/curves": "^1.1.0", "key-encoder": "^2.0.3", "multiformats": "^9.9.0", "uint8arrays": "3.0.0" } }, "node_modules/@atproto/common": { "version": "0.4.4", "resolved": "https://registry.npmjs.org/@atproto/common/-/common-0.4.4.tgz", "integrity": "sha512-58tMbn6A1Zu296s/l3uIj8z9d7IRHpZvLOfsFRikaQaYrzhJpL2aPY4uFQ8GJcxnsxeUnxBCrQz9we5jVVJI5Q==", "license": "MIT", "dependencies": { "@atproto/common-web": "^0.3.1", "@ipld/dag-cbor": "^7.0.3", "cbor-x": "^1.5.1", "iso-datestring-validator": "^2.2.2", "multiformats": "^9.9.0", "pino": "^8.21.0" } }, "node_modules/@atproto/common-web": { "version": "0.3.1", "resolved": "https://registry.npmjs.org/@atproto/common-web/-/common-web-0.3.1.tgz", "integrity": "sha512-N7wiTnus5vAr+lT//0
#include "Lighting.hpp"
namespace MC::World::Generation {
void Lighting::add_chunk(Chunk& chunk) {
for (U8 x = 0; x < Chunk::Width; x++) {
for (U8 z = 0; z < Chunk::Width; z++) {
U8 current_light_exposure = SunBrightness;
for (U8 y = Chunk::Height - 1; y != 0; y--) {
auto& block = chunk.at(x, y, z);
if (!block.type.is_translucent())