fix player connection position
This commit is contained in:
parent
b03526eacd
commit
92a3a64c5d
|
@ -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"))
|
||||
|
|
Loading…
Reference in New Issue