Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Jan 21, 2025
1 parent 23c6665 commit 9443892
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/objects/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void Player::updateEntity() {
} else if (chunks->getChunkByVoxel(position) && eid != ENTITY_NONE) {
logger.error() << "player entity despawned or deleted; "
"will be respawned";
eid = 0;
eid = ENTITY_AUTO;
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/objects/Players.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Player* Players::create(int64_t id) {
glm::vec3(0, DEF_PLAYER_Y, 0),
DEF_PLAYER_SPEED,
level.inventories->create(DEF_PLAYER_INVENTORY_SIZE),
0
ENTITY_AUTO
);
auto player = playerPtr.get();
add(std::move(playerPtr));
Expand Down Expand Up @@ -92,7 +92,7 @@ void Players::deserialize(const dv::value& src) {
glm::vec3(0, DEF_PLAYER_Y, 0),
DEF_PLAYER_SPEED,
level.inventories->create(DEF_PLAYER_INVENTORY_SIZE),
0
ENTITY_AUTO
);
auto player = playerPtr.get();
player->deserialize(playerMap);
Expand Down

0 comments on commit 9443892

Please sign in to comment.