Fix lua object:get_properties() being broken

This commit is contained in:
Sapier 2015-12-21 00:24:37 +01:00 committed by BlockMen
parent 764f603eff
commit 814d3cc904

View File

@ -281,9 +281,10 @@ void push_object_properties(lua_State *L, ObjectProperties *prop)
lua_setfield(L, -2, "backface_culling");
lua_pushlstring(L, prop->nametag.c_str(), prop->nametag.size());
lua_setfield(L, -2, "nametag");
lua_newtable(L);
push_ARGB8(L, prop->nametag_color);
lua_setfield(L, -2, "nametag_color");
lua_pushnumber(L, prop->automatic_face_movement_max_rotation_per_sec);
lua_setfield(L, -2, "automatic_face_movement_max_rotation_per_sec");
}
/******************************************************************************/