]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
Fix lua object:get_properties() being broken
authorSapier <sapier AT gmx dot net>
Sun, 20 Dec 2015 23:24:37 +0000 (00:24 +0100)
committerSapier <sapier AT gmx dot net>
Sun, 20 Dec 2015 23:27:13 +0000 (00:27 +0100)
src/script/common/c_content.cpp

index 89f927f1098ff0909d2cfc95b44ea28cf75fdc8f..36a5c2ddd700e96d21304d1317a342e091015eaa 100644 (file)
@@ -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");
 }
 
 /******************************************************************************/