@@ -423,14 +423,14 @@ int ModApiMapgen::l_register_biome(lua_State *L)
423
423
Biome *b = bmgr->create (biometype);
424
424
425
425
b->name = getstringfield_default (L, index , " name" , " " );
426
- b->depth_top = getintfield_default (L, index , " depth_top" , 1 );
427
- b->depth_filler = getintfield_default (L, index , " depth_filler" , 3 );
428
- b->height_shore = getintfield_default (L, index , " height_shore" , 3 );
429
- b->depth_water_top = getintfield_default (L, index , " depth_water_top" , 0 );
430
- b->height_min = getintfield_default (L, index , " height_min" , 0 );
431
- b->height_max = getintfield_default (L, index , " height_max" , 0 );
432
- b->heat_point = getfloatfield_default (L, index , " heat_point" , 0 .);
433
- b->humidity_point = getfloatfield_default (L, index , " humidity_point" , 0 .);
426
+ b->depth_top = getintfield_default (L, index , " depth_top" , 1 );
427
+ b->depth_filler = getintfield_default (L, index , " depth_filler" , 3 );
428
+ b->height_shore = getintfield_default (L, index , " height_shore" , 3 );
429
+ b->depth_water_top = getintfield_default (L, index , " depth_water_top" , 0 );
430
+ b->height_min = getintfield_default (L, index , " height_min" , - 31000 );
431
+ b->height_max = getintfield_default (L, index , " height_max" , 31000 );
432
+ b->heat_point = getfloatfield_default (L, index , " heat_point" , 0 .f );
433
+ b->humidity_point = getfloatfield_default (L, index , " humidity_point" , 0 .f );
434
434
b->flags = 0 ; // reserved
435
435
436
436
u32 id = bmgr->add (b);
@@ -501,6 +501,8 @@ int ModApiMapgen::l_register_decoration(lua_State *L)
501
501
502
502
deco->name = getstringfield_default (L, index , " name" , " " );
503
503
deco->fill_ratio = getfloatfield_default (L, index , " fill_ratio" , 0.02 );
504
+ deco->height_min = getintfield_default (L, index , " height_min" , 31000 );
505
+ deco->height_max = getintfield_default (L, index , " height_max" , -31000 );
504
506
deco->sidelen = getintfield_default (L, index , " sidelen" , 8 );
505
507
if (deco->sidelen <= 0 ) {
506
508
errorstream << " register_decoration: sidelen must be "
@@ -660,8 +662,8 @@ int ModApiMapgen::l_register_ore(lua_State *L)
660
662
ore->clust_scarcity = getintfield_default (L, index , " clust_scarcity" , 1 );
661
663
ore->clust_num_ores = getintfield_default (L, index , " clust_num_ores" , 1 );
662
664
ore->clust_size = getintfield_default (L, index , " clust_size" , 0 );
663
- ore->height_min = getintfield_default (L, index , " height_min" , 0 );
664
- ore->height_max = getintfield_default (L, index , " height_max" , 0 );
665
+ ore->height_min = getintfield_default (L, index , " height_min" , - 31000 );
666
+ ore->height_max = getintfield_default (L, index , " height_max" , 31000 );
665
667
ore->nthresh = getfloatfield_default (L, index , " noise_threshhold" , 0 );
666
668
ore->noise = NULL ;
667
669
ore->flags = 0 ;
0 commit comments