mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
spawn point fix
This commit is contained in:
parent
3f77bd91d3
commit
04ab2839a1
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue