From 15352db7bc03a176ea7a184f40a7f4e72b54b5fe Mon Sep 17 00:00:00 2001 From: Mel Date: Sat, 29 Jul 2023 17:31:10 +0200 Subject: Add default light to just-generated chunks --- src/World/Chunk.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/World/Chunk.hpp') 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; -- cgit 1.4.1