Scripting WIP

This commit is contained in:
Perttu Ahola
2011-11-12 12:12:15 +02:00
parent 526eedf98e
commit b35adfbd2d
3 changed files with 13 additions and 3 deletions

View File

@@ -383,7 +383,6 @@ class ObjectRef
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);