aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-07-06 15:50:55 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-07-06 15:50:55 +0200
commite610149c0cc3516b61115541f2f4f78344a0bb2c (patch)
treeb1205a15af51db02c9301f4ab8ecdd7527d13c10 /src/script/lua_api
parenta87805a9445f280ca71da322c4b32cf357744511 (diff)
downloaddragonfireclient-e610149c0cc3516b61115541f2f4f78344a0bb2c.tar.xz
Initial Commit
Diffstat (limited to 'src/script/lua_api')
-rw-r--r--src/script/lua_api/l_localplayer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/lua_api/l_localplayer.cpp b/src/script/lua_api/l_localplayer.cpp
index 3538c4fe4..2a87a3b05 100644
--- a/src/script/lua_api/l_localplayer.cpp
+++ b/src/script/lua_api/l_localplayer.cpp
@@ -23,6 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "client/localplayer.h"
#include "hud.h"
#include "common/c_content.h"
+#include "client/client.h"
LuaLocalPlayer::LuaLocalPlayer(LocalPlayer *m) : m_localplayer(m)
{
@@ -223,6 +224,7 @@ int LuaLocalPlayer::l_set_pos(lua_State *L)
v3f pos = checkFloatPos(L, 2);
player->setPosition(pos);
+ getClient(L)->sendPlayerPos();
return 0;
}