mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
player inventory id fix
This commit is contained in:
parent
7ae5c4e3a1
commit
6c7497eee6
2 changed files with 5 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ Level::Level(World* world, const Content* content, EngineSettings& settings)
|
|||
{
|
||||
objCounter = 0;
|
||||
physics = new PhysicsSolver(glm::vec3(0, -22.6f, 0));
|
||||
auto inv = std::make_shared<Inventory>(world->getNextInventoryId(), DEF_PLAYER_INVENTORY_SIZE);
|
||||
auto inv = std::make_shared<Inventory>(0, DEF_PLAYER_INVENTORY_SIZE);
|
||||
player = spawnObject<Player>(glm::vec3(0, DEF_PLAYER_Y, 0), DEF_PLAYER_SPEED, inv);
|
||||
|
||||
uint matrixSize = (settings.chunks.loadDistance+
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue