Skip to content

Commit

Permalink
Fix lua object:get_properties() being broken
Browse files Browse the repository at this point in the history
  • Loading branch information
Sapier authored and Sapier committed Dec 20, 2015
1 parent 5755c9a commit 5de8e02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/script/common/c_content.cpp
Expand Up @@ -278,9 +278,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");
}

/******************************************************************************/
Expand Down

0 comments on commit 5de8e02

Please sign in to comment.