mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
feat: loading entities (WIP)
This commit is contained in:
parent
08cc78289d
commit
c8666910ce
16 changed files with 129 additions and 38 deletions
|
|
@ -110,7 +110,7 @@ std::unique_ptr<Level> World::load(
|
|||
DEF_PLAYER_SPEED,
|
||||
level->inventories->create(DEF_PLAYER_INVENTORY_SIZE)
|
||||
);
|
||||
player->deserialize(players->map(i));
|
||||
player->deserialize(players->map(i).get());
|
||||
level->inventories->store(player->getInventory());
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue