]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/script/lua_api/l_localplayer.cpp
Initial Commit
[dragonfireclient.git] / src / script / lua_api / l_localplayer.cpp
index 3538c4fe4555cdbfefc3ee26dbc5f9d185c9e3e7..2a87a3b05bbaec91d09c254ee30e36335955484b 100644 (file)
@@ -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;
 }