aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2013-06-17 18:23:31 -0400
committerkwolekr <kwolekr@minetest.net>2013-06-17 18:23:31 -0400
commit56093b6614a47b181bbce6d4e35d213a4e04120c (patch)
treecd5ac885638f130f90034de6752e23c06c9bc81c /src/script
parent0a8519a26fc7c10b4e7415746e9045caa3ae978f (diff)
downloadminetest-56093b6614a47b181bbce6d4e35d213a4e04120c.tar.gz
minetest-56093b6614a47b181bbce6d4e35d213a4e04120c.tar.bz2
minetest-56093b6614a47b181bbce6d4e35d213a4e04120c.zip
Decoration: Change divlen to sidelen
Diffstat (limited to 'src/script')
-rw-r--r--src/script/lua_api/luaapi.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script/lua_api/luaapi.cpp b/src/script/lua_api/luaapi.cpp
index 75139861b..667a3afcf 100644
--- a/src/script/lua_api/luaapi.cpp
+++ b/src/script/lua_api/luaapi.cpp
@@ -683,7 +683,7 @@ int ModApiBasic::l_register_decoration(lua_State *L)
deco->c_place_on = CONTENT_IGNORE;
deco->place_on_name = getstringfield_default(L, index, "place_on", "ignore");
- deco->divlen = getintfield_default(L, index, "divlen", 8);
+ deco->sidelen = getintfield_default(L, index, "sidelen", 8);
deco->fill_ratio = getfloatfield_default(L, index, "fill_ratio", 0.02);
lua_getfield(L, index, "noise_params");
@@ -749,8 +749,8 @@ int ModApiBasic::l_register_decoration(lua_State *L)
break; }
}
- if (deco->divlen <= 0) {
- errorstream << "register_decoration: divlen must be "
+ if (deco->sidelen <= 0) {
+ errorstream << "register_decoration: sidelen must be "
"greater than 0" << std::endl;
delete deco;
return 0;