From: paramat Date: Sun, 21 Jan 2018 20:23:29 +0000 (+0000) Subject: Dungeon loot: Reduce maximum processed rooms to 8 X-Git-Tag: 5.0.0~124 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ee6d2f24689a9274a7ee78d281b7b9f243f036c6;p=oweals%2Fminetest_game.git Dungeon loot: Reduce maximum processed rooms to 8 --- diff --git a/mods/dungeon_loot/mapgen.lua b/mods/dungeon_loot/mapgen.lua index 9d42c530..1e463450 100644 --- a/mods/dungeon_loot/mapgen.lua +++ b/mods/dungeon_loot/mapgen.lua @@ -131,8 +131,8 @@ minetest.register_on_generated(function(minp, maxp, blockseed) local rand = PcgRandom(noise3d_integer(noise, poslist[1])) local candidates = {} - -- process at most 16 rooms to keep runtime of this predictable - local num_process = math.min(#poslist, 16) + -- process at most 8 rooms to keep runtime of this predictable + local num_process = math.min(#poslist, 8) for i = 1, num_process do local room = find_walls(poslist[i]) -- skip small rooms and everything that doesn't at least have 3 walls