aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2014-12-30 00:52:17 -0500
committerkwolekr <kwolekr@minetest.net>2014-12-30 00:52:40 -0500
commitb589353d89a5a5cd2dd999a13ca039079bee0ece (patch)
treeace6e9a6209e64c36f8e989ba251e50b883dc225 /src/script
parentcfec470b513f06670fd7b791aca62fd2c8384c53 (diff)
downloadminetest-b589353d89a5a5cd2dd999a13ca039079bee0ece.tar.gz
minetest-b589353d89a5a5cd2dd999a13ca039079bee0ece.tar.bz2
minetest-b589353d89a5a5cd2dd999a13ca039079bee0ece.zip
Decoration: Fix default parameter values
Diffstat (limited to 'src/script')
-rw-r--r--src/script/lua_api/l_mapgen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/lua_api/l_mapgen.cpp b/src/script/lua_api/l_mapgen.cpp
index b7d7d096e..9e6eacff8 100644
--- a/src/script/lua_api/l_mapgen.cpp
+++ b/src/script/lua_api/l_mapgen.cpp
@@ -522,8 +522,8 @@ int ModApiMapgen::l_register_decoration(lua_State *L)
deco->name = getstringfield_default(L, index, "name", "");
deco->fill_ratio = getfloatfield_default(L, index, "fill_ratio", 0.02);
- deco->height_min = getintfield_default(L, index, "height_min", 31000);
- deco->height_max = getintfield_default(L, index, "height_max", -31000);
+ deco->height_min = getintfield_default(L, index, "height_min", -31000);
+ deco->height_max = getintfield_default(L, index, "height_max", 31000);
deco->sidelen = getintfield_default(L, index, "sidelen", 8);
if (deco->sidelen <= 0) {
errorstream << "register_decoration: sidelen must be "