From b589353d89a5a5cd2dd999a13ca039079bee0ece Mon Sep 17 00:00:00 2001 From: kwolekr Date: Tue, 30 Dec 2014 00:52:17 -0500 Subject: [PATCH] Decoration: Fix default parameter values --- src/script/lua_api/l_mapgen.cpp | 4 ++-- 1 file 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 " -- 2.25.1