add on_chunk_present and on_chunk_remove events

This commit is contained in:
MihailRis
2025-01-12 05:41:42 +03:00
parent cfa6b5e578
commit 22c7cb8398
9 changed files with 65 additions and 9 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ WorldRenderer::WorldRenderer(
) {
auto& settings = engine.getSettings();
level.events->listen(
EVT_CHUNK_HIDDEN,
LevelEventType::CHUNK_HIDDEN,
[this](LevelEventType, Chunk* chunk) { chunks->unload(chunk); }
);
auto assets = engine.getAssets();