1
0
Fork 0

ObjectRef:setpos() to move player properly (a bit shortcuttish implementation)

mutilcraft-mt53
Perttu Ahola 2012-01-06 19:17:44 +02:00
parent 4f2c1e36a1
commit 2f5c28aaf1
1 changed files with 4 additions and 0 deletions

View File

@ -1747,6 +1747,10 @@ private:
v3f pos = checkFloatPos(L, 2);
// Do it
co->setPos(pos);
// Move player if applicable
ServerRemotePlayer *player = getplayer(ref);
if(player != NULL)
get_server(L)->SendMovePlayer(player);
return 0;
}