mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
add on_chunk_present and on_chunk_remove events
This commit is contained in:
parent
cfa6b5e578
commit
22c7cb8398
9 changed files with 65 additions and 9 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue