We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df9c221 commit 3e2deaeCopy full SHA for 3e2deae
mods/default/functions.lua
@@ -294,13 +294,12 @@ minetest.register_abm({
294
--
295
296
local in_dig_up = false
297
-local mapgen_limit = tonumber(minetest.settings:get("mapgen_limit")) or 31007
298
function default.dig_up(pos, node, digger, max_height)
299
if in_dig_up then return end -- Do not recurse
300
if digger == nil then return end
301
- max_height = max_height or mapgen_limit
+ max_height = max_height or 100
302
303
- for y = pos.y + 1, math.min(pos.y + max_height, mapgen_limit) do
+ for y = pos.y + 1, pos.y + max_height do
304
local up_pos = { x = pos.x, y = y, z = pos.z}
305
local up_node = minetest.get_node(up_pos)
306
if up_node.name == node.name then
0 commit comments