fix player connection position

This commit is contained in:
darkrose 2013-05-12 18:26:57 +10:00
parent b03526eacd
commit 92a3a64c5d
1 changed files with 4 additions and 0 deletions

View File

@ -4299,6 +4299,10 @@ Player *Server::emergePlayer(const char *name, const char *password, u16 peer_id
// Got one.
player->peer_id = peer_id;
// fix player appearing underground
// TODO: probably a better way/place to do this
v3f pos = player->getPosition();
player->setPosition(pos+v3f(0,3,0));
// Reset inventory to creative if in creative mode
if(g_settings->getBool("creative_mode"))