1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Decoration: Change divlen to sidelen

This commit is contained in:
kwolekr 2013-06-17 18:23:31 -04:00
parent 0a8519a26f
commit 56093b6614
4 changed files with 15 additions and 8 deletions

View file

@ -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;