Skip to content
Snippets Groups Projects
Commit 2f5c28aa authored by Perttu Ahola's avatar Perttu Ahola
Browse files

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

parent 4f2c1e36
Branches
Tags
No related merge requests found
......@@ -1747,6 +1747,10 @@ class ObjectRef
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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment