mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Scripting WIP
This commit is contained in:
parent
526eedf98e
commit
b35adfbd2d
3 changed files with 13 additions and 3 deletions
|
@ -383,7 +383,6 @@ private:
|
|||
ObjectRef *ref = checkobject(L, 1);
|
||||
ServerActiveObject *co = getobject(ref);
|
||||
if(co == NULL) return 0;
|
||||
infostream<<"ObjectRef::l_getpos(): id="<<co->getId()<<std::endl;
|
||||
v3f pos = co->getBasePosition() / BS;
|
||||
lua_newtable(L);
|
||||
lua_pushnumber(L, pos.X);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue