mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
fixes + Block.replaceable
This commit is contained in:
parent
cee0214ac5
commit
dc0c497ec1
6 changed files with 46 additions and 15 deletions
|
|
@ -13,7 +13,6 @@
|
|||
Level::Level(World* world, const Content* content, Player* player, EngineSettings& settings)
|
||||
: world(world),
|
||||
content(content),
|
||||
contentIds(content->indices),
|
||||
player(player),
|
||||
chunksStorage(new ChunksStorage(this)),
|
||||
events(new LevelEvents()) ,
|
||||
|
|
@ -22,11 +21,8 @@ Level::Level(World* world, const Content* content, Player* player, EngineSetting
|
|||
|
||||
uint matrixSize = (settings.chunks.loadDistance+
|
||||
settings.chunks.padding) * 2;
|
||||
chunks = new Chunks(matrixSize, matrixSize,
|
||||
0, 0,
|
||||
world->wfile,
|
||||
events,
|
||||
content);
|
||||
chunks = new Chunks(matrixSize, matrixSize, 0, 0,
|
||||
world->wfile, events, content);
|
||||
lighting = new Lighting(content, chunks);
|
||||
|
||||
events->listen(EVT_CHUNK_HIDDEN, [this](lvl_event_type type, Chunk* chunk) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue