From: Sapier <sapier AT gmx dot net>
Date: Sun, 20 Dec 2015 23:24:37 +0000 (+0100)
Subject: Fix lua object:get_properties() being broken
X-Git-Tag: 0.4.14~381
X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5de8e026a38f4fd080c10e98d4650de6435c2975;p=oweals%2Fminetest.git

Fix lua object:get_properties() being broken
---

diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp
index 89f927f10..36a5c2ddd 100644
--- a/src/script/common/c_content.cpp
+++ b/src/script/common/c_content.cpp
@@ -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");
 }
 
 /******************************************************************************/