Skip to content

Commit 3e2deae

Browse files
committed
Oh forgot to commit
1 parent df9c221 commit 3e2deae

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mods/default/functions.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,13 +294,12 @@ minetest.register_abm({
294294
--
295295

296296
local in_dig_up = false
297-
local mapgen_limit = tonumber(minetest.settings:get("mapgen_limit")) or 31007
298297
function default.dig_up(pos, node, digger, max_height)
299298
if in_dig_up then return end -- Do not recurse
300299
if digger == nil then return end
301-
max_height = max_height or mapgen_limit
300+
max_height = max_height or 100
302301

303-
for y = pos.y + 1, math.min(pos.y + max_height, mapgen_limit) do
302+
for y = pos.y + 1, pos.y + max_height do
304303
local up_pos = { x = pos.x, y = y, z = pos.z}
305304
local up_node = minetest.get_node(up_pos)
306305
if up_node.name == node.name then

0 commit comments

Comments
 (0)