mirror of
https://github.com/moparisthebest/minetest
synced 2024-11-18 07:15:07 -05:00
ObjectRef:setpos() to move player properly (a bit shortcuttish implementation)
This commit is contained in:
parent
4f2c1e36a1
commit
2f5c28aaf1
@ -1747,6 +1747,10 @@ private:
|
|||||||
v3f pos = checkFloatPos(L, 2);
|
v3f pos = checkFloatPos(L, 2);
|
||||||
// Do it
|
// Do it
|
||||||
co->setPos(pos);
|
co->setPos(pos);
|
||||||
|
// Move player if applicable
|
||||||
|
ServerRemotePlayer *player = getplayer(ref);
|
||||||
|
if(player != NULL)
|
||||||
|
get_server(L)->SendMovePlayer(player);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user