Skip to content

Commit 5de8e02

Browse files
SapierSapier
Sapier
authored and
Sapier
committedDec 20, 2015
Fix lua object:get_properties() being broken
1 parent 5755c9a commit 5de8e02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

Diff for: ‎src/script/common/c_content.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,10 @@ void push_object_properties(lua_State *L, ObjectProperties *prop)
278278
lua_setfield(L, -2, "backface_culling");
279279
lua_pushlstring(L, prop->nametag.c_str(), prop->nametag.size());
280280
lua_setfield(L, -2, "nametag");
281-
lua_newtable(L);
282281
push_ARGB8(L, prop->nametag_color);
283282
lua_setfield(L, -2, "nametag_color");
283+
lua_pushnumber(L, prop->automatic_face_movement_max_rotation_per_sec);
284+
lua_setfield(L, -2, "automatic_face_movement_max_rotation_per_sec");
284285
}
285286

286287
/******************************************************************************/

0 commit comments

Comments
 (0)