diff options
| author | Mel <einebeere@gmail.com> | 2023-07-29 17:31:10 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2023-07-29 17:31:10 +0200 |
| commit | 15352db7bc03a176ea7a184f40a7f4e72b54b5fe (patch) | |
| tree | e826870299577e2c6b0ecc79171f8a6accaa6a51 /src/World/Chunk.hpp | |
| parent | 6b69d4b5b648253f894707723af0e2eae9f71445 (diff) | |
| download | meowcraft-15352db7bc03a176ea7a184f40a7f4e72b54b5fe.tar.zst meowcraft-15352db7bc03a176ea7a184f40a7f4e72b54b5fe.zip | |
Add default light to just-generated chunks
Diffstat (limited to 'src/World/Chunk.hpp')
| -rw-r--r-- | src/World/Chunk.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/World/Chunk.hpp b/src/World/Chunk.hpp index 1aa2dd1..0b00c97 100644 --- a/src/World/Chunk.hpp +++ b/src/World/Chunk.hpp @@ -21,8 +21,8 @@ public: m_position{(Real)x * Width, 0.0f, (Real)y * Width} {} struct BlockData { - BlockData() : type(BlockType::Air), light{200} {} - BlockData(BlockType t) : type(t), light{200} {} + BlockData() : type(BlockType::Air), light{0} {} + BlockData(BlockType t) : type(t), light{0} {} BlockType type; U8 light; |
