summaryrefslogtreecommitdiff
path: root/src/script/common/c_content.cpp
diff options
context:
space:
mode:
authorSapier <sapier AT gmx dot net>2015-12-21 00:24:37 +0100
committerSapier <sapier AT gmx dot net>2015-12-21 00:27:13 +0100
commit5de8e026a38f4fd080c10e98d4650de6435c2975 (patch)
treec003034075ea399bb3bd751f1d5618748cb5a5fe /src/script/common/c_content.cpp
parent5755c9a43980930ba97fe7db56d3e0509a3e2d77 (diff)
downloadminetest-5de8e026a38f4fd080c10e98d4650de6435c2975.tar.gz
minetest-5de8e026a38f4fd080c10e98d4650de6435c2975.tar.bz2
minetest-5de8e026a38f4fd080c10e98d4650de6435c2975.zip
Fix lua object:get_properties() being broken
Diffstat (limited to 'src/script/common/c_content.cpp')
-rw-r--r--src/script/common/c_content.cpp3
1 files changed, 2 insertions, 1 deletions
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");
}
/******************************************************************************/