Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
diff --git a/src/scriptapi.cpp b/src/scriptapi.cpp
index 8321a45..c27ab55 100644
--- a/src/scriptapi.cpp
+++ b/src/scriptapi.cpp
@@ -1747,7 +1747,12 @@ class ObjectRef
v3f pos = checkFloatPos(L, 2);
// Do it
co->setPos(pos);
- return 0;
+
+ // Move player
+ ServerRemotePlayer *player = getplayer(ref);
+ if(player != NULL)
+ get_server(L)->SendMovePlayer(player);
+ return 0;
}
// moveto(self, pos, continuous=false)
Patch by xyz