forked from VoxeLibre/VoxeLibre
Restrict dungeon chest spawning again
This commit is contained in:
parent
a792e5d545
commit
4625d2e8f8
|
@ -177,7 +177,7 @@ minetest.register_on_generated(function(minp, maxp)
|
||||||
table.sort(chestSlots)
|
table.sort(chestSlots)
|
||||||
local currentChest = 1
|
local currentChest = 1
|
||||||
|
|
||||||
if ceilingfloor_ok and openings >= 0 and openings <= 5000 then
|
if ceilingfloor_ok and openings >= 1 and openings <= 5 then
|
||||||
-- Ceiling and floor
|
-- Ceiling and floor
|
||||||
local maxx, maxy, maxz = x+dim.x+1, y+dim.y+1, z+dim.z+1
|
local maxx, maxy, maxz = x+dim.x+1, y+dim.y+1, z+dim.z+1
|
||||||
local chestSlotCounter = 1
|
local chestSlotCounter = 1
|
||||||
|
|
Loading…
Reference in New Issue