prevent a crash when noise doesn't extend far enough outside the emerged area

This commit is contained in:
FaceDeer 2023-10-02 00:52:28 -06:00
parent a44f3273ca
commit 9477afdd81

View File

@ -455,8 +455,8 @@ minetest.register_on_generated(function(minp, maxp, seed)
end end
-- buildings -- buildings
for x = emin.x + 5, emax.x - 5 do for x = minp.x + 5, maxp.x - 5 do
for z = emin.z + 5, emax.z - 5 do for z = minp.z + 5, maxp.z - 5 do
local skip = false local skip = false
if pit and if pit and