Prevent random teleports when respawning players as ghosts.

master
whats_his_face 2022-01-31 12:20:57 -06:00
parent dec9610e34
commit b987acc5ae
1 changed files with 1 additions and 0 deletions

View File

@ -95,6 +95,7 @@ minetest.register_on_respawnplayer(function(player)
player:set_properties({visual_size = {x = 1, y = 1}, collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3}})
player:set_pos(lobby.spawn_pos)
player_attributes:set_string('ghost', 'true')
return true
end
end)