spawn point fix

This commit is contained in:
MihailRis 2024-01-29 18:07:46 +03:00
parent 3f77bd91d3
commit 04ab2839a1

View File

@ -142,7 +142,7 @@ void Player::attemptToFindSpawnpoint(Level* level) {
if (level->chunks->isObstacleBlock(newpos.x, newpos.y, newpos.z) ||
headvox == nullptr || headvox->id != 0)
return;
spawnpoint = newpos;
spawnpoint = newpos + glm::vec3(0.5f, 0.0f, 0.5f);
teleport(spawnpoint);
}