diff options
Diffstat (limited to '')
-rw-r--r-- | src/World.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/World.cpp b/src/World.cpp index 487f4ba..723b006 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -1,4 +1,5 @@ #include "World.hpp" +#include "Event.hpp" void World::ParseChunkData(std::shared_ptr<PacketChunkData> packet) { StreamBuffer chunkData(packet->Data.data(), packet->Data.size()); @@ -17,6 +18,8 @@ void World::ParseChunkData(std::shared_ptr<PacketChunkData> packet) { swap(it->second, section); } sectionMutexes[chunkPosition].unlock(); + + EventAgregator::PushEvent(EventType::ChunkChanged, ChunkChangedData{ chunkPosition }); } } } |