fix logout-login-3-blocks-down bug

master
Ilya Zhuravlev 2011-11-09 20:49:40 +04:00
parent 74cb3cfa1b
commit caee667a6d
1 changed files with 4 additions and 0 deletions

View File

@ -2022,6 +2022,10 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
return;
}
// this magic fixes (very dirty-fixes) bug when you are 3 nodes (cubes) down after logout-login
v3f position = player->getPosition();
position.Y += 3;
player->setPosition(position);
/*
Answer with a TOCLIENT_INIT
*/