merge beacon-branch into fork beacon branch #7

Merged
chmodsayshello merged 453 commits from VoxeLibre/VoxeLibre:beacons into beacon-"fork" 2022-07-23 11:30:49 +02:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit db4f2baafc - Show all commits

View File

@ -1102,7 +1102,9 @@ mcl_mapgen_core.register_generator("railcorridors", nil, function(minp, maxp, bl
local buffer = 5
-- Do up to 10 tries to start a corridor system
for t=1,10 do
-- 5 Still seems to generate a lot of them and
-- makes this noticeably faster.
for t=1,5 do
-- Get semi-random height in mapchunk
local y = pr:next(minp.y + buffer, maxp.y - buffer)
y = math.floor(math.max(height_min + buffer, math.min(height_max - buffer, y)))