ClientObjectRef: fix get_pos() being off by an order of magnitude

This commit is contained in:
cron 2020-10-07 23:00:29 +00:00
parent 9601d49d28
commit 2451fc8570

View File

@ -33,7 +33,7 @@ int ClientObjectRef::l_get_pos(lua_State *L)
{
ClientObjectRef *ref = checkobject(L, 1);
ClientActiveObject *cao = get_cao(ref);
push_v3f(L, cao->getPosition());
push_v3f(L, cao->getPosition() / BS);
return 1;
}