diff --git a/src/scriptapi.cpp b/src/scriptapi.cpp index 8321a4529..b617626a0 100644 --- a/src/scriptapi.cpp +++ b/src/scriptapi.cpp @@ -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; }